From af8845f1dbe80f9ef53632338d0560c979bdc9dc Mon Sep 17 00:00:00 2001 From: Hristo Anastasov Date: Thu, 18 Nov 2021 16:18:36 +0200 Subject: [PATCH] fix(grid): change how we get the currency code --- .../excel-style/grid.excel-style-filtering.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/igniteui-angular/src/lib/grids/filtering/excel-style/grid.excel-style-filtering.component.ts b/projects/igniteui-angular/src/lib/grids/filtering/excel-style/grid.excel-style-filtering.component.ts index c2050f6a1fa..870c43f97d0 100644 --- a/projects/igniteui-angular/src/lib/grids/filtering/excel-style/grid.excel-style-filtering.component.ts +++ b/projects/igniteui-angular/src/lib/grids/filtering/excel-style/grid.excel-style-filtering.component.ts @@ -745,7 +745,7 @@ export class IgxGridExcelStyleFilteringComponent extends BaseFilteringComponent case GridColumnDataType.Time: return formatDate(element, format, locale, timezone); case GridColumnDataType.Currency: - return formatCurrency(element, currencyCode ?? getLocaleCurrencyCode(locale), display, digitsInfo, locale); + return formatCurrency(element, currencyCode || getLocaleCurrencyCode(locale), display, digitsInfo, locale); case GridColumnDataType.Number: return formatNumber(element, locale, digitsInfo); case GridColumnDataType.Percent: