From 55675c2d2412da5dc154ee627e84793ee26add71 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Fri, 13 Sep 2024 12:14:18 +0200 Subject: [PATCH] fixing flag --- src/context/UserContext.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/context/UserContext.js b/src/context/UserContext.js index e5938b6..5a68601 100644 --- a/src/context/UserContext.js +++ b/src/context/UserContext.js @@ -11,7 +11,7 @@ export function UserContextProvider({ children }) { const localLanguage = localStorage.getItem("userLanguage") || "FR"; const localCountry = JSON.parse(localStorage.getItem("userCountry")) || { name: "belgique", - iso: "BE", + iso: "be", label: "Belgique", }; const localProfile = localStorage.getItem("userProfile") || "lhoist_employee"; @@ -21,6 +21,7 @@ export function UserContextProvider({ children }) { const [profile, setProfile] = useState(localProfile); const [screensTranslations, setScreensTranslations] = useState({}); + console.log("country", country); useEffect(() => { if (!language) return; const loadTranslations = async (language) => {