COMPATIBILITY CI | Adding country in the list of dependencies
This commit is contained in:
parent
a7d644e787
commit
5f92b1bec2
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user