fixing flag
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2024-09-13 12:14:18 +02:00
parent cbf249fb9c
commit 55675c2d24

View File

@ -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) => {