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>) => {
|
valueGetter: ({ data }: VegaValueGetterParams<Position>) => {
|
||||||
return !data
|
return !data
|
||||||
? undefined
|
? undefined
|
||||||
: toBigNum(
|
: toBigNum(data.realisedPNL, data.decimals).toNumber();
|
||||||
data.realisedPNL,
|
|
||||||
data.marketDecimalPlaces
|
|
||||||
).toNumber();
|
|
||||||
},
|
},
|
||||||
valueFormatter: ({
|
valueFormatter: ({
|
||||||
data,
|
data,
|
||||||
|
Loading…
Reference in New Issue
Block a user