Extract separate add / bind methods on AddThreepid
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user