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); setFieldError('confirm', constants.PASSPHRASE_MATCH_ERROR);
} }
} catch (e) { } catch (e) {
setFieldError( setFieldError('confirm', `${constants.UNKNOWN_ERROR} ${e.message}`);
'passphrase',
`${constants.UNKNOWN_ERROR} ${e.message}`
);
} finally { } finally {
setLoading(false); setLoading(false);
} }

View file

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