diff --git a/src/components/languageSwitcher/LanguageSwitcher.js b/src/components/languageSwitcher/LanguageSwitcher.js index ab465d0..910a8d9 100644 --- a/src/components/languageSwitcher/LanguageSwitcher.js +++ b/src/components/languageSwitcher/LanguageSwitcher.js @@ -190,7 +190,7 @@ class LanguageSwitcher extends Component { return; } - const locales = Object.keys(this.props.langs); + const locales = Object.keys(this.state.filteredLangs); if (locales.length === 0) { return; }