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