forked from Transparency/kgroad-frontend2
fixed bug with sign-in
This commit is contained in:
1 parent
7bc3e2ccb5
commit
7d36510a9b
6 files changed
+22
-14
No files matched your search
@@ -44,9 +44,9 @@ const ConfirmCode: React.FC<IConfirmCodeProps> = ({
|
||||
);
|
||||
router.push("/sign-in/reset-code");
|
||||
}
|
||||
setLoader(false);
|
||||
} catch (error) {
|
||||
setError("An error ocured");
|
||||
} finally {
|
||||
setLoader(false);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -57,7 +57,7 @@ const SendEmail: React.FC<ISendEmailProps> = ({
|
||||
|
||||
<form onSubmit={handleSubmit} className="send-email">
|
||||
<AuthInput
|
||||
type="text"
|
||||
type="email"
|
||||
name="email"
|
||||
label="Email"
|
||||
error={error}
|
||||
|
||||
@@ -48,6 +48,8 @@ const SignInForm = () => {
|
||||
|
||||
setLoader(false);
|
||||
|
||||
console.log(res);
|
||||
|
||||
if (res?.ok && !res.error) {
|
||||
router.push("/profile/personal");
|
||||
} else if (res?.status.toString().slice(0, 1) === "4") {
|
||||
|
||||
Reference in new issue
Block a user