diff --git a/src/index.js b/src/index.js index 75e6b31..1b1b1d7 100644 --- a/src/index.js +++ b/src/index.js @@ -138,8 +138,8 @@ function setLanguage() { if ( !availableLocaleSource .map((langObj) => langObj.language) - .includes(responseSourceLocale) || - responseSourceLocale === '' + .includes(responseSourceLocale) && + responseSourceLocale != '' ) { throw new Error( `[${ADDON_NAME}] Invalid Value (${responseSourceLocale}): Enter a valid value.`