diff options
author | 2025-04-26 01:05:59 +0530 | |
---|---|---|
committer | 2025-04-26 01:05:59 +0530 | |
commit | 84622698f6c0e9d76ebe434c00df587908a37015 (patch) | |
tree | bd36294b36de67fc182bae088ca34943d14ff129 /frontend/src/app/(auth)/login/page.tsx | |
parent | b08baa708e58bffcaed00525ccfc2a704102dc90 (diff) | |
download | finance-84622698f6c0e9d76ebe434c00df587908a37015.tar.gz finance-84622698f6c0e9d76ebe434c00df587908a37015.tar.bz2 finance-84622698f6c0e9d76ebe434c00df587908a37015.zip |
finance/frontend: fix: updated the pages and layouts to be compatible with the backend
Diffstat (limited to 'frontend/src/app/(auth)/login/page.tsx')
-rw-r--r-- | frontend/src/app/(auth)/login/page.tsx | 4 |
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'); |