mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 00:32:43 +10:00
login toast fix
This commit is contained in:
@ -53,6 +53,7 @@ export default function Login() {
|
|||||||
);
|
);
|
||||||
if (!res) {
|
if (!res) {
|
||||||
setErrorMessage("error");
|
setErrorMessage("error");
|
||||||
|
toast.dismiss();
|
||||||
toast.error("Something went wrong.");
|
toast.error("Something went wrong.");
|
||||||
}
|
}
|
||||||
// we're logged in! let's do a hard refresh to the desired url
|
// we're logged in! let's do a hard refresh to the desired url
|
||||||
@ -62,6 +63,7 @@ export default function Login() {
|
|||||||
}
|
}
|
||||||
// fallback if error not found
|
// fallback if error not found
|
||||||
else {
|
else {
|
||||||
|
toast.dismiss();
|
||||||
if (res.status == 401) {
|
if (res.status == 401) {
|
||||||
toast.error("Invalid email or password.");
|
toast.error("Invalid email or password.");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user