fix(webapp): use the server formatted value

This commit is contained in:
Ahmed Bouhuolia
2023-12-04 08:31:18 +02:00
parent fb70c94465
commit 33afa3af64
12 changed files with 31 additions and 47 deletions

View File

@@ -47,9 +47,8 @@ export const useEstimateReadonlyEntriesColumns = () => {
},
{
Header: intl.get('rate'),
accessor: 'rate',
Cell: FormatNumberCell,
width: getColumnWidth(entries, 'rate', {
accessor: 'rate_formatted',
width: getColumnWidth(entries, 'rate_formatted', {
minWidth: 60,
magicSpacing: 5,
}),
@@ -59,9 +58,9 @@ export const useEstimateReadonlyEntriesColumns = () => {
},
{
Header: intl.get('amount'),
accessor: 'amount',
accessor: 'total_formatted',
Cell: FormatNumberCell,
width: getColumnWidth(entries, 'amount', {
width: getColumnWidth(entries, 'total_formatted', {
minWidth: 60,
magicSpacing: 5,
}),