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

This commit is contained in:
Antoine M 2024-09-13 10:30:18 +02:00
parent 48972c7742
commit 4186850c0d

View File

@ -40,7 +40,10 @@ export function UserContextProvider({ children }) {
(countryJson) => countryJson.alpha2 === country.iso.toLowerCase()
);
setCountry({ ...country, label: currentCountry[language.toLowerCase()] });
}, [language, country]);
console.log("currentCountry", country);
// eslint-disable-next-line
}, [language]);
function changeUserLanguage(newLanguage) {
setLanguage(newLanguage);