fix(positions): fix valueGetter for realisedPNL in positions table
This commit is contained in:
parent
e55cf5ecc6
commit
f8c4d39b93
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user