From 7f1e47d7fdb82fbc6f80b903dad9a084a08a304c Mon Sep 17 00:00:00 2001 From: "m.ray" <16125548+MadalinaRaicu@users.noreply.github.com> Date: Fri, 3 Feb 2023 09:59:24 -0500 Subject: [PATCH] fix(trading): remove price flash cell from PNL (#2829) --- libs/positions/src/lib/positions-table.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/positions/src/lib/positions-table.tsx b/libs/positions/src/lib/positions-table.tsx index 862678633..ccd543d46 100644 --- a/libs/positions/src/lib/positions-table.tsx +++ b/libs/positions/src/lib/positions-table.tsx @@ -19,6 +19,7 @@ import { signedNumberCssClassRules, DateRangeFilter, addDecimalsFormatNumber, + PriceCell, } from '@vegaprotocol/react-helpers'; import { AgGridDynamic as AgGrid, Link } from '@vegaprotocol/ui-toolkit'; import { AgGridColumn } from 'ag-grid-react'; @@ -84,7 +85,7 @@ export const PositionsTable = forwardRef( filterParams: { buttons: ['reset'] }, tooltipComponent: TooltipCellComponent, }} - components={{ AmountCell, PriceFlashCell, ProgressBarCell }} + components={{ AmountCell, PriceFlashCell, PriceCell, ProgressBarCell }} {...props} > ( ? undefined : addDecimalsFormatNumber(data.realisedPNL, data.decimals); }} - cellRenderer="PriceFlashCell" + cellRenderer="PriceCell" headerTooltip={t( 'Profit or loss is realised whenever your position is reduced to zero and the margin is released back to your collateral balance. P&L excludes any fees paid.' )} @@ -360,7 +361,7 @@ export const PositionsTable = forwardRef( ? undefined : addDecimalsFormatNumber(data.unrealisedPNL, data.decimals) } - cellRenderer="PriceFlashCell" + cellRenderer="PriceCell" headerTooltip={t( 'Unrealised profit is the current profit on your open position. Margin is still allocated to your position.' )}