Skip to content

Commit d7c9b1f

Browse files
committed
Update UserLogin.component.tsx
1 parent 245d2a1 commit d7c9b1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/User/UserLogin.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const UserLogin = () => {
2626
setLoading(true);
2727
setError(null);
2828
try {
29-
const customer = await login(data.username, data.password);
30-
if (customer) {
29+
const result = await login(data.username, data.password);
30+
if (result.success && result.status === 'SUCCESS') {
3131
router.push('/min-konto');
3232
} else {
3333
throw new Error('Failed to login');

0 commit comments

Comments
 (0)