diff --git a/ui/redux/actions/settings.js b/ui/redux/actions/settings.js index 2b2242fd8..3c85bd446 100644 --- a/ui/redux/actions/settings.js +++ b/ui/redux/actions/settings.js @@ -91,7 +91,7 @@ export function doSetDarkTime(value, options) { export function doSetLanguage(language) { return (dispatch, getState) => { const { settings } = getState(); - if (settings.language !== language || (settings.loadedLanguages && !settings.loadedLanguages.include(language))) { + if (settings.language !== language || (settings.loadedLanguages && !settings.loadedLanguages.includes(language))) { // this should match the behavior/logic in index-web.html fetch('https://lbry.com/i18n/get/lbry-desktop/app-strings/' + language + '.json') .then(r => r.json())