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);
|
||||
}
|
||||
} catch (e) {
|
||||
setFieldError(
|
||||
'passphrase',
|
||||
`${constants.UNKNOWN_ERROR} ${e.message}`
|
||||
);
|
||||
setFieldError('confirm', `${constants.UNKNOWN_ERROR} ${e.message}`);
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue