Delete password button bug fix

This commit is contained in:
mashazyu
2019-04-15 14:05:51 +02:00
parent 772a277315
commit a291c78379
5 changed files with 29 additions and 10 deletions
+10 -4
View File
@@ -17,10 +17,15 @@ export default class ChangePassword extends Component {
}
startChangingPassword = () => {
showBackUpReminder(() => {
this.setState({ enteringCurrentPassword: true })
})
this.props.onStartChangingPassword()
showBackUpReminder(
this.startEnteringCurrentPassword,
this.cancelConfirmationWithPassword
)
}
startEnteringCurrentPassword = () => {
this.setState({ enteringCurrentPassword: true })
this.props.onStartChange()
}
startEnteringNewPassword = () => {
@@ -37,6 +42,7 @@ export default class ChangePassword extends Component {
enteringNewPassword: false,
enteringCurrentPassword: false
})
this.props.onCancelChange()
}
render() {