From 08adb805e97eacc2fb6992b30e62ed9c36197a4d Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Wed, 27 Oct 2021 09:55:57 -0400 Subject: [PATCH] Fix syntax --- ui/util/default-languages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/util/default-languages.js b/ui/util/default-languages.js index 962c83b78..0d6731c2a 100644 --- a/ui/util/default-languages.js +++ b/ui/util/default-languages.js @@ -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;