Skip to content

Commit

Permalink
Merge pull request #1422 from /issues/1343-disable-button-after-error
Browse files Browse the repository at this point in the history
Fix #1343: SMS OTP confirmation button remains enabled after error
  • Loading branch information
banterCZ authored Sep 15, 2023
2 parents 20fc398 + b260026 commit 9a473d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powerauth-webflow/src/main/js/components/smsComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class SmsComponent extends React.Component {
handleSubmit(event) {
event.preventDefault();
this.props.dispatch(authenticate(this.state.authCode, this.state.password, this.state.signedMessage, this.props.parentComponent));
this.setState({authCode: '', password: ''});
this.setState({authCode: '', password: '', confirmDisabled: true});
}

updateButtonState() {
Expand Down

0 comments on commit 9a473d9

Please sign in to comment.