Quick fix for English showing up in the dropdown 3 times
parent
53d2b244a1
commit
e5f69349ae
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue