diff --git a/CHANGELOG.md b/CHANGELOG.md index c2a340ad6..6991b67cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. ### Changed - [List changes here for upcoming release] +## 0.1.3 - 2018-12-17 +### Change +- Client: Fix newsletter signup notification integration + ## 0.1.2 - 2018-12-16 ### Change - Client: Upgrade Material-ui to fix webpack deepmerge import bug diff --git a/client/package.json b/client/package.json index 2fd10c8e4..45fa48784 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "master-app-client", - "version": "0.0.1", + "version": "0.1.3", "description": "Responsible for loading all web modules and running them.", "main": "src/index.js", "scripts": { diff --git a/client/src/views/email-verification/components/SignupForm.js b/client/src/views/email-verification/components/SignupForm.js index d8db5a03a..ae959467a 100644 --- a/client/src/views/email-verification/components/SignupForm.js +++ b/client/src/views/email-verification/components/SignupForm.js @@ -122,7 +122,7 @@ export class SignupForm extends Component { console.log('NewsletterSignup handleSubmit: ', this.state.email) const signupResponse = await NewsletterSignup({ variables: { email: this.state.email } }) console.log('NewsletterSignup: ', signupResponse) - if (signupResponse.data.master_NewsletterSignup === 'SUCCESS') this.setState({ email: '', success: true }) + if (signupResponse.data.notifications_Master_NewsletterSignup === 'SUCCESS') this.setState({ email: '', success: true }) } } diff --git a/client/src/views/email-verification/components/SignupVerifyResponse.js b/client/src/views/email-verification/components/SignupVerifyResponse.js index 525cee3a9..89303dba6 100644 --- a/client/src/views/email-verification/components/SignupVerifyResponse.js +++ b/client/src/views/email-verification/components/SignupVerifyResponse.js @@ -56,7 +56,7 @@ export class SignupVerifyResponse extends React.Component { } if (data !== undefined && data !== null) { console.log(data) - if (data.master_NewsletterSignupVerify === 'SUCCESS') { + if (data.notifications_Master_NewsletterSignupVerify === 'SUCCESS') { return (