update the feild below which error appears
This commit is contained in:
parent
cbcdba8229
commit
cd309b0c77
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue