Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed May 12, 2024
1 parent fbe3be4 commit 9349781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/tables/ColumnRenderers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ export function CurrencyColumn({
sortable: sortable ?? true,
render: (record: any) => {
let currency_key = currency_accessor ?? `${accessor}_currency`;
return formatCurrency(record[accessor], {
currency: currency ?? record[currency_key]
return formatCurrency(resolveItem(record, accessor), {
currency: currency ?? resolveItem(record, currency_key)
});
}
};
Expand Down

0 comments on commit 9349781

Please sign in to comment.