Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HezekielT committed Jul 4, 2023
1 parent d39ab05 commit 5af9a7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/settings/PasswordPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function PasswordPage(props) {
error.newPasswordSameAsOld = true;
}

setErrors(() => ({...error}));
setErrors(error);
return _.size(error) === 0;
};

Expand All @@ -130,7 +130,7 @@ function PasswordPage(props) {
return (
<ScreenWrapper
onEntryTransitionEnd={() => {
if (!currentPasswordInputRef) {
if (!currentPasswordInputRef.current) {
return;
}

Expand Down

0 comments on commit 5af9a7a

Please sign in to comment.