diff --git a/src/context/UserContext.js b/src/context/UserContext.js index a25ef84..2c03f5c 100644 --- a/src/context/UserContext.js +++ b/src/context/UserContext.js @@ -40,7 +40,7 @@ export function UserContextProvider({ children }) { (countryJson) => countryJson.alpha2 === country.iso.toLowerCase() ); setCountry({ ...country, label: currentCountry[language.toLowerCase()] }); - }, [language]); + }, [language, country]); function changeUserLanguage(newLanguage) { setLanguage(newLanguage);