aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/app/(auth)/login
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswa Kalyan Bhuyan <biswa@surgot.in> 2025-04-26 01:05:59 +0530
committerLibravatarLibravatar Biswa Kalyan Bhuyan <biswa@surgot.in> 2025-04-26 01:05:59 +0530
commit84622698f6c0e9d76ebe434c00df587908a37015 (patch)
treebd36294b36de67fc182bae088ca34943d14ff129 /frontend/src/app/(auth)/login
parentb08baa708e58bffcaed00525ccfc2a704102dc90 (diff)
downloadfinance-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')
-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');