This commit is contained in:
Nikita Gopienko 2019-11-25 13:33:39 +03:00
commit 5bc15e8e29

View File

@ -15,7 +15,7 @@ const Layout = ({ currentProductId, setCurrentProductId, language, children }) =
useEffect(() => {
currentProductId !== 'settings' && setCurrentProductId('settings');
i18n.changeLanguage(language);
}, [language]);
}, [currentProductId, language, setCurrentProductId]);
return (
<I18nextProvider i18n={i18n}>