diff --git a/src/components/dropdown-banner/email-confirmation/banner.jsx b/src/components/dropdown-banner/email-confirmation/banner.jsx index 8840e1f22..74a5c21ba 100644 --- a/src/components/dropdown-banner/email-confirmation/banner.jsx +++ b/src/components/dropdown-banner/email-confirmation/banner.jsx @@ -8,8 +8,12 @@ const FormattedMessage = require('react-intl').FormattedMessage; const EmailConfirmationModal = require('../../../components/modal/email-confirmation/modal.jsx'); const EmailConfirmationBanner = ({onRequestDismiss, userUsesParentEmail}) => { - const [showEmailConfirmationModal, setShowEmailConfirmationModal] = useState(false); + const i18nPrefix = + userUsesParentEmail ? + "emailConfirmationBanner.parentEmail" : + "emailConfirmationBanner"; + return ( {(showEmailConfirmationModal && { onRequestDismiss={onRequestDismiss} > { setShowEmailConfirmationModal(true); }} > - + ), faqLink: ( - + ) }} diff --git a/src/components/join-flow/welcome-step.jsx b/src/components/join-flow/welcome-step.jsx index a8807ef06..91e173cf8 100644 --- a/src/components/join-flow/welcome-step.jsx +++ b/src/components/join-flow/welcome-step.jsx @@ -77,7 +77,7 @@ class WelcomeStep extends React.Component { { state.session.session.flags.has_outstanding_email_confirmation && state.session.session.flags.confirm_email_banner; const isTotallyNormal = state.session.session.flags && selectIsTotallyNormal(state); - const userUsesParentEmail = state.session.session.flags && !!state.session.session.flags.with_parent_email; + const userUsesParentEmail = state.session.session.flags && state.session.session.flags.with_parent_email; // if we don't have projectInfo, assume it's shared until we know otherwise const isShared = !projectInfoPresent || state.preview.projectInfo.is_published; diff --git a/src/views/splash/splash.jsx b/src/views/splash/splash.jsx index 8a0fe9958..6985e2345 100644 --- a/src/views/splash/splash.jsx +++ b/src/views/splash/splash.jsx @@ -190,7 +190,7 @@ class Splash extends React.Component { const showIntro = this.shouldShowIntro() || false; const showWelcome = this.shouldShowWelcome(); const homepageRefreshStatus = this.getHomepageRefreshStatus(); - const userUsesParentEmail = this.props.flags && !!this.props.flags.with_parent_email; + const userUsesParentEmail = this.props.flags && this.props.flags.with_parent_email; return (