diff --git a/client/src/views/email-verification/components/SignupForm.js b/client/src/views/email-verification/components/SignupForm.js index 4a8b7b862..408fd5c3a 100644 --- a/client/src/views/email-verification/components/SignupForm.js +++ b/client/src/views/email-verification/components/SignupForm.js @@ -44,7 +44,7 @@ export class SignupForm extends Component { > {(NewsletterSignup, { loading, error, data }) => { return ( - + {displayTitle && Stay in touch!} {displayIntro && Opt-in our mailing list to stay up to date with the Advanced Algos Project.}
diff --git a/client/src/views/email-verification/components/SignupVerifyResponse.js b/client/src/views/email-verification/components/SignupVerifyResponse.js index 5fa3db408..a31cbe11b 100644 --- a/client/src/views/email-verification/components/SignupVerifyResponse.js +++ b/client/src/views/email-verification/components/SignupVerifyResponse.js @@ -31,24 +31,34 @@ export class SignupVerifyResponse extends React.Component { } else { BannerText = ['Newsletter Signup Error: ',
, error.message] } + return ( + + ) } if (loading && !error) { BannerText = ['Processing newsletter sign-up...',
, 'Thank you for opting-in to recieve updates about the Advanced Algos project!'] } if (data !== undefined && data !== null) { console.log(data) - return ( - - - {displayForm && } - - - ) + if (data.master_NewsletterSignupVerify === 'SUCCESS') { + return ( + + + {displayForm && } + + + ) + } } else { return (