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
This commit is contained in:
Bartłomiej Głownia 2022-11-02 12:45:18 +01:00 committed by GitHub
parent 3415c8d86c
commit e4baf5caee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -27,8 +27,6 @@ export const PositionsManager = ({ partyId }: PositionsManagerProps) => {
<>
<AsyncRenderer loading={loading} error={error} data={data}>
<PositionsTable
domLayout="autoHeight"
style={{ width: '100%' }}
ref={gridRef}
rowData={data}
onClose={(position) => submit(position)}

View File

@ -200,7 +200,7 @@ export const PositionsTable = forwardRef<AgGridReact, Props>(
}: VegaValueFormatterParams<Position, 'openVolume'>):
| string
| undefined => {
return !data
return data?.openVolume === undefined
? undefined
: volumePrefix(
addDecimalsFormatNumber(