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) {
|
||||
setErrorMessage("error");
|
||||
toast.dismiss();
|
||||
toast.error("Something went wrong.");
|
||||
}
|
||||
// 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
|
||||
else {
|
||||
toast.dismiss();
|
||||
if (res.status == 401) {
|
||||
toast.error("Invalid email or password.");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user