Fix syntax

This commit is contained in:
Thomas Zarebczan 2021-10-27 09:55:57 -04:00 committed by GitHub
parent 3788ef58ec
commit 08adb805e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ export const getDefaultHomepageKey = () => {
const keys = Object.keys(homepages); const keys = Object.keys(homepages);
if (keys.includes(language)) { if (keys.includes(language)) {
return language; return language;
} else if (keys.include(language.slice(0, 2))) { } else if (keys.includes(language.slice(0, 2))) {
return language.slice(0, 2); return language.slice(0, 2);
} else { } else {
return DEFAULT_LANG; return DEFAULT_LANG;