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);
|
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;
|
||||||
|
|
Loading…
Reference in a new issue