From 66cbd4be45f39d2a4850952aefa47f11566e8c72 Mon Sep 17 00:00:00 2001 From: Anthony Hull Date: Thu, 10 Jun 2021 18:05:00 +0100 Subject: [PATCH] =?UTF-8?q?increasing=20style=20exponentially=20?= =?UTF-8?q?=F0=9F=91=97=E2=9C=A8=F0=9F=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/settings/NewPasswordForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/settings/NewPasswordForm.js b/src/pages/settings/NewPasswordForm.js index 485e456ea206..c37f7151b53a 100644 --- a/src/pages/settings/NewPasswordForm.js +++ b/src/pages/settings/NewPasswordForm.js @@ -35,7 +35,7 @@ class NewPasswordForm extends React.Component { } componentDidUpdate(prevProps, prevState) { - const eitherPasswordChanged = this.props.password !== prevProps.password + const eitherPasswordChanged = (this.props.password !== prevProps.password) || this.state.confirmNewPassword !== prevState.confirmNewPassword; if (eitherPasswordChanged) { this.props.updateIsFormValid(this.isValidForm());