From d308c0cf2b3bd64c516f1d0cb44563db2c0bc6c5 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sat, 27 Aug 2022 10:54:43 +0200 Subject: [PATCH] Refactoring --- libs/common/src/lib/helper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/common/src/lib/helper.ts b/libs/common/src/lib/helper.ts index caa8a25e8..dfb200346 100644 --- a/libs/common/src/lib/helper.ts +++ b/libs/common/src/lib/helper.ts @@ -57,8 +57,8 @@ export function getCssVariable(aCssVariable: string) { ); } -export function getDateFnsLocale(aLocale = '') { - if (aLocale.startsWith('de')) { +export function getDateFnsLocale(aLanguageCode: string) { + if (aLanguageCode === 'de') { return de; }