From 84622698f6c0e9d76ebe434c00df587908a37015 Mon Sep 17 00:00:00 2001 From: Biswa Kalyan Bhuyan Date: Sat, 26 Apr 2025 01:05:59 +0530 Subject: finance/frontend: fix: updated the pages and layouts to be compatible with the backend --- frontend/src/app/(auth)/login/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/src/app/(auth)/login') 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'); -- cgit v1.2.3-59-g8ed1b