Skip to content

Commit

Permalink
Merge pull request #400 from J1P5/fix/#399
Browse files Browse the repository at this point in the history
Fix/#399
  • Loading branch information
JW-Ahn0 authored Jan 8, 2025
2 parents e7edcf6 + 81f5139 commit d40d03a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useFetchSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const useFetchSession = () => {
retry: false,
});
return {
sessionUser: data,
sessionUser: isError ? null : data,
isLoading,
isError,
};
Expand Down
4 changes: 2 additions & 2 deletions src/stores/userStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export const useUserStore: UseBoundStore<StoreApi<UserState>> = create(
}
})
);
}
},
}),
{
name: localStorageKey
name: localStorageKey,
}
)
);

0 comments on commit d40d03a

Please sign in to comment.