We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 245d2a1 commit d7c9b1fCopy full SHA for d7c9b1f
src/components/User/UserLogin.component.tsx
@@ -26,8 +26,8 @@ const UserLogin = () => {
26
setLoading(true);
27
setError(null);
28
try {
29
- const customer = await login(data.username, data.password);
30
- if (customer) {
+ const result = await login(data.username, data.password);
+ if (result.success && result.status === 'SUCCESS') {
31
router.push('/min-konto');
32
} else {
33
throw new Error('Failed to login');
0 commit comments