fix: use correct variable for password confirmation value

This commit is contained in:
VardanHakobyan
2021-06-03 20:12:29 +04:00
parent 7a05a448c3
commit 7fab73395d

View File

@@ -194,7 +194,7 @@ const AccountMenu = observer(({ application, appState, closeAccountMenu }: Props
};
const register = async () => {
if (passcodeConfirmation !== password) {
if (passwordConfirmation !== password) {
application.alertService.alert(STRING_NON_MATCHING_PASSWORDS);
return;
}
@@ -261,8 +261,9 @@ const AccountMenu = observer(({ application, appState, closeAccountMenu }: Props
setEmail(value);
};
const handlePasswordConfirmationChange = () => {
console.log('handlePasswordConfirmationChange');
const handlePasswordConfirmationChange = (event: TargetedEvent<HTMLInputElement>) => {
const { value } = event.target as HTMLInputElement;
setPasswordConfirmation(value);
};
const handleMergeLocalData = () => {