Skip to content

Commit 1b2ecce

Browse files
committed
fix: user cannot login
1 parent 9e283d9 commit 1b2ecce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/stores/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const user = writable(null);
1010
export async function loadUser() {
1111
try {
1212
const res = await api.fetchUser();
13-
user.set(data);
13+
user.set(res);
1414
} catch (error) {
1515
console.error('Failed to load user:', error);
1616
user.set(null);

0 commit comments

Comments
 (0)