diff --git a/apps/web/src/components/language-toggle.tsx b/apps/web/src/components/language-toggle.tsx index 1eace1c..4b5162e 100644 --- a/apps/web/src/components/language-toggle.tsx +++ b/apps/web/src/components/language-toggle.tsx @@ -35,7 +35,7 @@ export function LanguageToggle() { selectedKeys={[locale]} onSelectionChange={async (keys) => { if (keys === "all") return; - await changeLanguage(Array.from(keys).at(0) as "en" | "id"); + await changeLanguage(Array.from(keys).at(0)?.toString() ?? "en"); }} > English