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()
|
(countryJson) => countryJson.alpha2 === country.iso.toLowerCase()
|
||||||
);
|
);
|
||||||
setCountry({ ...country, label: currentCountry[language.toLowerCase()] });
|
setCountry({ ...country, label: currentCountry[language.toLowerCase()] });
|
||||||
}, [language]);
|
}, [language, country]);
|
||||||
|
|
||||||
function changeUserLanguage(newLanguage) {
|
function changeUserLanguage(newLanguage) {
|
||||||
setLanguage(newLanguage);
|
setLanguage(newLanguage);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user