From b260026ba71c1aae8e5fe7d597f5bd3788e38bb6 Mon Sep 17 00:00:00 2001 From: Lubos Racansky Date: Fri, 15 Sep 2023 12:44:31 +0200 Subject: [PATCH] Fix #1343: SMS OTP confirmation button remains enabled after error --- powerauth-webflow/src/main/js/components/smsComponent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerauth-webflow/src/main/js/components/smsComponent.js b/powerauth-webflow/src/main/js/components/smsComponent.js index 79f45b5ba..336277576 100644 --- a/powerauth-webflow/src/main/js/components/smsComponent.js +++ b/powerauth-webflow/src/main/js/components/smsComponent.js @@ -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() {