diff --git a/libs/ledger/src/lib/ledger-table.tsx b/libs/ledger/src/lib/ledger-table.tsx index 12e9a96c7..679f4dcbe 100644 --- a/libs/ledger/src/lib/ledger-table.tsx +++ b/libs/ledger/src/lib/ledger-table.tsx @@ -134,6 +134,10 @@ export const LedgerTable = forwardRef( headerName={t('Transfer type')} field="transferType" tooltipField="transferType" + filter={SetFilter} + filterParams={{ + set: TransferTypeMapping, + }} valueFormatter={({ value, }: VegaValueFormatterParams) => @@ -147,14 +151,9 @@ export const LedgerTable = forwardRef( value, data, }: VegaValueFormatterParams) => { - const marketDecimalPlaces = data?.marketSender?.decimalPlaces; const assetDecimalPlaces = data?.asset?.decimals || 0; return value - ? addDecimalsFormatNumber( - value, - assetDecimalPlaces, - marketDecimalPlaces - ) + ? addDecimalsFormatNumber(value, assetDecimalPlaces) : value; }} /> @@ -175,14 +174,9 @@ export const LedgerTable = forwardRef( value, data, }: VegaValueFormatterParams) => { - const marketDecimalPlaces = data?.marketSender?.decimalPlaces; const assetDecimalPlaces = data?.asset?.decimals || 0; return value - ? addDecimalsFormatNumber( - value, - assetDecimalPlaces, - marketDecimalPlaces - ) + ? addDecimalsFormatNumber(value, assetDecimalPlaces) : value; }} /> @@ -193,14 +187,9 @@ export const LedgerTable = forwardRef( value, data, }: VegaValueFormatterParams) => { - const marketDecimalPlaces = data?.marketReceiver?.decimalPlaces; const assetDecimalPlaces = data?.asset?.decimals || 0; return value - ? addDecimalsFormatNumber( - value, - assetDecimalPlaces, - marketDecimalPlaces - ) + ? addDecimalsFormatNumber(value, assetDecimalPlaces) : value; }} />