Extract separate add / bind methods on AddThreepid
This commit is contained in:
parent
99b804d567
commit
9a1305bf4a
6 changed files with 45 additions and 17 deletions
|
@ -158,7 +158,7 @@ export default class PhoneNumbers extends React.Component {
|
|||
const task = new AddThreepid();
|
||||
this.setState({verifying: true, continueDisabled: true, addTask: task});
|
||||
|
||||
task.addMsisdn(phoneCountry, phoneNumber, false).then((response) => {
|
||||
task.addMsisdn(phoneCountry, phoneNumber).then((response) => {
|
||||
this.setState({continueDisabled: false, verifyMsisdn: response.msisdn});
|
||||
}).catch((err) => {
|
||||
console.error("Unable to add phone number " + phoneNumber + " " + err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue