This commit is contained in:
parent
48972c7742
commit
4186850c0d
|
|
@ -40,7 +40,10 @@ 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, country]);
|
console.log("currentCountry", country);
|
||||||
|
|
||||||
|
// eslint-disable-next-line
|
||||||
|
}, [language]);
|
||||||
|
|
||||||
function changeUserLanguage(newLanguage) {
|
function changeUserLanguage(newLanguage) {
|
||||||
setLanguage(newLanguage);
|
setLanguage(newLanguage);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user