From 648527e6505f8028ac019dd56e67630710f025b6 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 18 Sep 2019 08:41:05 +0100 Subject: [PATCH] Fix failure to render newly verified phone number and nested forms Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/settings/account/PhoneNumbers.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/views/settings/account/PhoneNumbers.js b/src/components/views/settings/account/PhoneNumbers.js index 8f91eb22cc..f814561c97 100644 --- a/src/components/views/settings/account/PhoneNumbers.js +++ b/src/components/views/settings/account/PhoneNumbers.js @@ -176,6 +176,7 @@ export default class PhoneNumbers extends React.Component { this.setState({continueDisabled: true}); const token = this.state.newPhoneNumberCode; + const address = this.state.verifyMsisdn; this.state.addTask.haveMsisdnToken(token).then(() => { this.setState({ addTask: null, @@ -188,7 +189,7 @@ export default class PhoneNumbers extends React.Component { }); const msisdns = [ ...this.props.msisdns, - { address: this.state.verifyMsisdn, medium: "msisdn" }, + { address, medium: "msisdn" }, ]; this.props.onMsisdnsChange(msisdns); }).catch((err) => { @@ -272,8 +273,8 @@ export default class PhoneNumbers extends React.Component { onChange={this._onChangeNewPhoneNumber} /> - {addVerifySection} + {addVerifySection} ); }