Quick fix for English showing up in the dropdown 3 times
parent
53d2b244a1
commit
e5f69349ae
|
@ -20,8 +20,10 @@ function LangDropdown({ changeParameter, data }) {
|
|||
) {
|
||||
//make sure the language is valid and not blank
|
||||
//console.log("LANGUAGE: " + document.language.name)
|
||||
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);
|
||||
setLanguages(langArray);
|
||||
|
|
Loading…
Reference in New Issue