Skip to content

Commit

Permalink
fix(SFOX): updateStep/changeEmail prop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Feb 13, 2019
1 parent 1700874 commit c3bee8c
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -100,21 +100,21 @@ class VerifyEmail extends Component {
values={{
resend: <a onClick={this.resendCode}>Resend</a>,
changeEmail: (
<a onClick={() => this.updateStep('change_email')}>
<a onClick={() => this.props.updateStep('change_email')}>
change email
</a>
)
}}
/>
)
case this.props.codeSent:
case this.state.codeSent:
return (
<FormattedMessage
id='sfoxexchangedata.create.verifyemail.helper.sentanothercode'
defaultMessage='Another code has been sent! {changeEmail}'
values={{
changeEmail: (
<a onClick={() => this.updateStep('change_email')}>
<a onClick={() => this.props.updateStep('change_email')}>
change email
</a>
)
Expand All @@ -129,7 +129,7 @@ class VerifyEmail extends Component {
values={{
resend: <a onClick={this.resendCode}>Resend</a>,
changeEmail: (
<a onClick={() => this.updateStep('change_email')}>
<a onClick={() => this.props.updateStep('change_email')}>
change email
</a>
)
Expand Down

0 comments on commit c3bee8c

Please sign in to comment.