style: showing user sign-in progress on sign-in with code (#311)
* style: not showing pointer & theme color on resend code button disabled * style: showing user sign-in progress on sign-in with code * style: showing error from server on sign-in with code fail
This commit is contained in:
parent
c0263acb8a
commit
5cbb3ecd4d
2 changed files with 4 additions and 4 deletions
|
|
@ -70,11 +70,10 @@ export const EmailCodeForm = ({ onSuccess }: any) => {
|
|||
onSuccess(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log(error);
|
||||
setToastAlert({
|
||||
title: "Oops!",
|
||||
type: "error",
|
||||
message: "Enter the correct code to sign in",
|
||||
message: error?.response?.data?.error ?? "Enter the correct code to sign in",
|
||||
});
|
||||
setError("token" as keyof EmailCodeFormValues, {
|
||||
type: "manual",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue