You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
Fix failure to render newly verified phone number and nested forms
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -176,6 +176,7 @@ export default class PhoneNumbers extends React.Component {
|
|||||||
|
|
||||||
this.setState({continueDisabled: true});
|
this.setState({continueDisabled: true});
|
||||||
const token = this.state.newPhoneNumberCode;
|
const token = this.state.newPhoneNumberCode;
|
||||||
|
const address = this.state.verifyMsisdn;
|
||||||
this.state.addTask.haveMsisdnToken(token).then(() => {
|
this.state.addTask.haveMsisdnToken(token).then(() => {
|
||||||
this.setState({
|
this.setState({
|
||||||
addTask: null,
|
addTask: null,
|
||||||
@@ -188,7 +189,7 @@ export default class PhoneNumbers extends React.Component {
|
|||||||
});
|
});
|
||||||
const msisdns = [
|
const msisdns = [
|
||||||
...this.props.msisdns,
|
...this.props.msisdns,
|
||||||
{ address: this.state.verifyMsisdn, medium: "msisdn" },
|
{ address, medium: "msisdn" },
|
||||||
];
|
];
|
||||||
this.props.onMsisdnsChange(msisdns);
|
this.props.onMsisdnsChange(msisdns);
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
@@ -272,8 +273,8 @@ export default class PhoneNumbers extends React.Component {
|
|||||||
onChange={this._onChangeNewPhoneNumber}
|
onChange={this._onChangeNewPhoneNumber}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{addVerifySection}
|
|
||||||
</form>
|
</form>
|
||||||
|
{addVerifySection}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user