aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/app/(auth)/login/page.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/app/(auth)/login/page.tsx')
-rw-r--r--frontend/src/app/(auth)/login/page.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/app/(auth)/login/page.tsx b/frontend/src/app/(auth)/login/page.tsx
index 23cdd24..9c6c4b1 100644
--- a/frontend/src/app/(auth)/login/page.tsx
+++ b/frontend/src/app/(auth)/login/page.tsx
@@ -37,8 +37,8 @@ export default function LoginPage() {
setIsLoading(true);
try {
- const response = await login(email, password);
- showNotification('success', `Welcome back, ${response?.user?.Name || 'user'}! You've been successfully logged in.`);
+ await login(email, password);
+ showNotification('success', `Welcome back! You've been successfully logged in.`);
router.push('/dashboard');
} catch (err: any) {
setError(err.message || 'Login failed');