Skip to content

Commit

Permalink
Fix condition for returning throwing error
Browse files Browse the repository at this point in the history
in source language input (#28)
  • Loading branch information
ttsukagoshi committed Mar 5, 2023
1 parent 110f03c commit b43514c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
Expand Down

0 comments on commit b43514c

Please sign in to comment.