migrate to fiber

This commit is contained in:
Zoe
2024-10-01 03:45:43 -05:00
parent e39e5f51fd
commit e64b9fba7f
17 changed files with 587 additions and 372 deletions

View File

@@ -20,7 +20,7 @@ export const useUser = () => {
// Fetch the user only if it's uninitialized (i.e., null)
const getUser = async () => {
if (!user.value.fetched) {
if (!user.value.fetched && useCookie('sessionToken').value) {
await fetchUser()
}