Skip to content

Commit 584d7f7

Browse files
committed
Cleqar toast after successful redirecting
1 parent 3b776b4 commit 584d7f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/app/components/auth/LoginComponent.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ export default function LoginForm() {
6969

7070
// Redirect after short delay
7171
setTimeout(() => {
72+
// clear the toast
73+
toast.dismiss();
7274
router.push("/home");
73-
}, 1000);
75+
}, 500);
7476

7577
} catch (error) {
7678
console.error('Login error details:', error);

0 commit comments

Comments
 (0)