fix(positions): fix valueGetter for realisedPNL in positions table

This commit is contained in:
Matthew Russell 2023-07-20 17:55:21 +01:00
parent e55cf5ecc6
commit f8c4d39b93
No known key found for this signature in database

View File

@ -365,10 +365,7 @@ export const PositionsTable = forwardRef<AgGridReact, Props>(
valueGetter: ({ data }: VegaValueGetterParams<Position>) => {
return !data
? undefined
: toBigNum(
data.realisedPNL,
data.marketDecimalPlaces
).toNumber();
: toBigNum(data.realisedPNL, data.decimals).toNumber();
},
valueFormatter: ({
data,