Fix syntax
This commit is contained in:
parent
3788ef58ec
commit
08adb805e9
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ export const getDefaultHomepageKey = () => {
|
|||
const keys = Object.keys(homepages);
|
||||
if (keys.includes(language)) {
|
||||
return language;
|
||||
} else if (keys.include(language.slice(0, 2))) {
|
||||
} else if (keys.includes(language.slice(0, 2))) {
|
||||
return language.slice(0, 2);
|
||||
} else {
|
||||
return DEFAULT_LANG;
|
||||
|
|
Loading…
Reference in a new issue