From e4baf5caee1e3b5c5adf675b2ab63b41b07f07e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20G=C5=82ownia?= Date: Wed, 2 Nov 2022 12:45:18 +0100 Subject: [PATCH] chore(#1932): make positions table fill available space (#1933) * chore(#1932): make positions table fill available space * chore: switch console-lite e2e fron stagnet to testnet --- apps/console-lite-e2e/.env | 6 +++--- libs/positions/src/lib/positions-manager.tsx | 2 -- libs/positions/src/lib/positions-table.tsx | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/console-lite-e2e/.env b/apps/console-lite-e2e/.env index 78d94c5f7..a8d9ff1bf 100644 --- a/apps/console-lite-e2e/.env +++ b/apps/console-lite-e2e/.env @@ -1,7 +1,7 @@ # App configuration variables -NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/stagnet3-network.json -NX_VEGA_URL=https://api.n01.stagnet3.vega.xyz/graphql -NX_VEGA_ENV=STAGNET3 +NX_VEGA_CONFIG_URL=https://static.vega.xyz/assets/testnet-network.json +NX_VEGA_URL=https://api.n06.testnet.vega.xyz/graphql +NX_VEGA_ENV=TESTNET NX_ETHEREUM_PROVIDER_URL=https://sepolia.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8 NX_ETHERSCAN_URL=https://sepolia.etherscan.io NX_VEGA_EXPLORER_URL=https://stagnet3.explorer.vega.xyz diff --git a/libs/positions/src/lib/positions-manager.tsx b/libs/positions/src/lib/positions-manager.tsx index ef40c2f3e..f149eaa3b 100644 --- a/libs/positions/src/lib/positions-manager.tsx +++ b/libs/positions/src/lib/positions-manager.tsx @@ -27,8 +27,6 @@ export const PositionsManager = ({ partyId }: PositionsManagerProps) => { <> submit(position)} diff --git a/libs/positions/src/lib/positions-table.tsx b/libs/positions/src/lib/positions-table.tsx index 550fe54a5..8118b5c37 100644 --- a/libs/positions/src/lib/positions-table.tsx +++ b/libs/positions/src/lib/positions-table.tsx @@ -200,7 +200,7 @@ export const PositionsTable = forwardRef( }: VegaValueFormatterParams): | string | undefined => { - return !data + return data?.openVolume === undefined ? undefined : volumePrefix( addDecimalsFormatNumber(