From c8d37c38b4c29b977b5cdf0e7c3269b5a278a347 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Mon, 24 Jun 2024 17:33:20 -0300 Subject: [PATCH] fix fetch data to work even with autologin true --- src/frontend/src/contexts/authContext.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/src/contexts/authContext.tsx b/src/frontend/src/contexts/authContext.tsx index cfdbdfb4f..ab845963a 100644 --- a/src/frontend/src/contexts/authContext.tsx +++ b/src/frontend/src/contexts/authContext.tsx @@ -12,6 +12,8 @@ import { useGlobalVariablesStore } from "../stores/globalVariablesStore/globalVa import { useStoreStore } from "../stores/storeStore"; import { Users } from "../types/api"; import { AuthContextType } from "../types/contexts/auth"; +import { useGlobalVariablesStore } from "../stores/globalVariablesStore/globalVariables"; +import { useStoreStore } from "../stores/storeStore"; const initialValue: AuthContextType = { isAdmin: false,