From 5f92b1bec2cfaa8e83eca7c125d0721363526780 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 12 Sep 2024 12:57:43 +0200 Subject: [PATCH] COMPATIBILITY CI | Adding country in the list of dependencies --- src/context/UserContext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);