From 90f6ed6ab6c837b9d33e40ef9d903ba72fb86a43 Mon Sep 17 00:00:00 2001 From: Barry Low Date: Mon, 17 Dec 2018 08:25:06 -0800 Subject: [PATCH 1/2] Update signup data responses --- client/src/views/email-verification/components/SignupForm.js | 2 +- .../views/email-verification/components/SignupVerifyResponse.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ( Date: Mon, 17 Dec 2018 08:27:47 -0800 Subject: [PATCH 2/2] Update Changelog --- CHANGELOG.md | 4 ++++ client/package.json | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) 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/package.json b/package.json index 9b759e37f..70ea69af3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "master-app", - "version": "0.1.1", + "version": "0.1.3", "description": "Responsible for loading all web modules and running them.", "main": "index.js", "scripts": {