fix: ehm in realtà le pagine utente non funzionavano per niente

This commit is contained in:
2023-01-12 14:36:09 +01:00
parent fab8398a7a
commit 8a911f5ddb
9 changed files with 47 additions and 35 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ const UserContext = createContext<UserContextValue | null>(null)
type CurrentUserHook = () => [User | null, boolean]
export const useCurrentUser: CurrentUserHook = () => {
export const useLoggedInUser: CurrentUserHook = () => {
const userContext = useContext(UserContext)
if (!userContext) {
return [null, false]