Skip to content

Commit

Permalink
fix(SFOX): turn off email in use error if changing info through edit …
Browse files Browse the repository at this point in the history
…link
  • Loading branch information
Philip Welber committed Jun 1, 2018
1 parent 5bacc8d commit 874b613
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class VerifyEmail extends Component {
this.props.securityCenterActions.sendConfirmationCodeEmail(this.props.oldEmail)
}
this.props.formActions.change('sfoxCreate', 'emailAddress', this.props.oldEmail)
this.props.sfoxFrontendActions.sfoxNotAsked()
}

componentDidUpdate (prevProps) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class VerifyMobile extends Component {
this.updateMobileNumber = this.updateMobileNumber.bind(this)
}

componentDidMount () {
this.props.sfoxFrontendActions.sfoxNotAsked()
}

componentDidUpdate (prevProps) {
if (this.props.smsVerified && !prevProps.smsVerified) this.props.updateUI({ create: 'create_account' })
if (this.props.smsVerified && !this.props.editVerifiedMobile) this.props.updateUI({ create: 'create_account' })
Expand Down

0 comments on commit 874b613

Please sign in to comment.