From 5af9a7ae92737597c8086ed198bd7ffe3b48565c Mon Sep 17 00:00:00 2001 From: Hezekiel Tamire Date: Tue, 4 Jul 2023 12:16:07 +0300 Subject: [PATCH] fix --- src/pages/settings/PasswordPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/settings/PasswordPage.js b/src/pages/settings/PasswordPage.js index 0e1457e9bac4..859c3e2bfefe 100755 --- a/src/pages/settings/PasswordPage.js +++ b/src/pages/settings/PasswordPage.js @@ -112,7 +112,7 @@ function PasswordPage(props) { error.newPasswordSameAsOld = true; } - setErrors(() => ({...error})); + setErrors(error); return _.size(error) === 0; }; @@ -130,7 +130,7 @@ function PasswordPage(props) { return ( { - if (!currentPasswordInputRef) { + if (!currentPasswordInputRef.current) { return; }