update the feild below which error appears

This commit is contained in:
Abhinav-grd 2021-09-01 13:17:37 +05:30
parent cbcdba8229
commit cd309b0c77
2 changed files with 2 additions and 5 deletions

View file

@ -32,10 +32,7 @@ function SetPasswordForm(props: Props) {
setFieldError('confirm', constants.PASSPHRASE_MATCH_ERROR);
}
} catch (e) {
setFieldError(
'passphrase',
`${constants.UNKNOWN_ERROR} ${e.message}`
);
setFieldError('confirm', `${constants.UNKNOWN_ERROR} ${e.message}`);
} finally {
setLoading(false);
}

View file

@ -45,7 +45,7 @@ export default function SignUp(props: SignUpProps) {
setData(LS_KEYS.USER, { email });
await getOtt(email);
} catch (e) {
setFieldError('email', `${constants.UNKNOWN_ERROR} ${e.message}`);
setFieldError('confirm', `${constants.UNKNOWN_ERROR} ${e.message}`);
}
try {
if (passphrase === confirm) {