fix: ehm in realtà le pagine utente non funzionavano per niente
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user