Skip to content

Commit

Permalink
ar(fix) DPCP-121: Locale Parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Aug 30, 2024
1 parent c123510 commit 515e6ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/model/decorators/hypnos-public-decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import type { ICard } from '@dreampipcom/oneiros';
/* private */
const decorateListing = (listing: Record<string, any>, uMeta: any, locale?: string): ICard => {
const coerceStringLocale = (localeString: any) => {
return localeString[locale?.split('-')[1]] || localeString[locale?.split('-')[0]];
const strArr;
return strArr[[1]] || strArr[locale?.split('-')[0]];
};
const decd: ICard = {
id: `${listing.id}`,
Expand Down

0 comments on commit 515e6ef

Please sign in to comment.