Quick fix for English showing up in the dropdown 3 times

pull/4/head
Brogan Clements 2022-02-17 14:58:40 -05:00
parent 53d2b244a1
commit e5f69349ae
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ function LangDropdown({ changeParameter, data }) {
) {
//make sure the language is valid and not blank
//console.log("LANGUAGE: " + document.language.name)
langArray.push(document.language);
if (document.language.code !== "en-US") { // used to ensure only one English is listed
langArray.push(document.language);
}
}
});
langArray.sort((a, b) => a.name > b.name);