Browse Source

fix(common): accept undefined for language code parameter

pull/6886/head
KenTandrian 1 week ago
parent
commit
19375ed8cf
  1. 2
      libs/common/src/lib/helper.ts

2
libs/common/src/lib/helper.ts

@ -187,7 +187,7 @@ export function getCurrencyFromSymbol(aSymbol = '') {
return aSymbol.replace(DEFAULT_CURRENCY, ''); return aSymbol.replace(DEFAULT_CURRENCY, '');
} }
export function getDateFnsLocale(aLanguageCode: string) { export function getDateFnsLocale(aLanguageCode?: string) {
if (aLanguageCode === 'ca') { if (aLanguageCode === 'ca') {
return ca; return ca;
} else if (aLanguageCode === 'de') { } else if (aLanguageCode === 'de') {

Loading…
Cancel
Save