From f2417e90f25c0df8bb13f9a8627a87ad05592da2 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Sun, 30 Mar 2025 23:26:06 +0200 Subject: [PATCH] refactor(backend): Verplaats default value --- backend/src/controllers/themes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/controllers/themes.ts b/backend/src/controllers/themes.ts index f516d840..e772087a 100644 --- a/backend/src/controllers/themes.ts +++ b/backend/src/controllers/themes.ts @@ -7,7 +7,7 @@ interface Translations { } export function getThemesHandler(req: Request, res: Response): void { - const language = (req.query.language as string).toLowerCase() || 'nl'; + const language = (req.query.language as string || 'nl').toLowerCase(); const translations = loadTranslations(language); const themeList = themes.map((theme) => ({ key: theme.title,