From fc7248efef781b6b45ccdbc90bf3653dbe5d65a7 Mon Sep 17 00:00:00 2001 From: Iosif Boanca <iosif.boanca@thinslices.com> Date: Wed, 10 Oct 2018 10:00:50 +0300 Subject: [PATCH] fix(sign-up invitation): added country field, as selected value when creating a new account using admin --- packages/component-email/src/routes/emails/notifications.js | 1 + .../src/components/SignUp/SignUpInvitationPage.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/component-email/src/routes/emails/notifications.js b/packages/component-email/src/routes/emails/notifications.js index 10dd129a5..84a1b0a86 100644 --- a/packages/component-email/src/routes/emails/notifications.js +++ b/packages/component-email/src/routes/emails/notifications.js @@ -25,6 +25,7 @@ module.exports = { lastName: user.lastName, affiliation: user.affiliation, title: user.title, + country: user.country, }), ctaText: 'CONFIRM ACCOUNT', signatureName: 'Hindawi', diff --git a/packages/components-faraday/src/components/SignUp/SignUpInvitationPage.js b/packages/components-faraday/src/components/SignUp/SignUpInvitationPage.js index 1c9551903..56440be03 100644 --- a/packages/components-faraday/src/components/SignUp/SignUpInvitationPage.js +++ b/packages/components-faraday/src/components/SignUp/SignUpInvitationPage.js @@ -24,6 +24,7 @@ export default compose( const lastName = params.get('lastName') || '' const firstName = params.get('firstName') || '' const affiliation = params.get('affiliation') || '' + const country = params.get('country') || '' return { initialValues: { @@ -33,6 +34,7 @@ export default compose( lastName, firstName, affiliation, + country, }, } }), -- GitLab