diff --git a/apps/explorer/src/app/routes/parties/id/Party-assets.graphql b/apps/explorer/src/app/routes/parties/id/Party-assets.graphql index 6d30cc986..1021cfc78 100644 --- a/apps/explorer/src/app/routes/parties/id/Party-assets.graphql +++ b/apps/explorer/src/app/routes/parties/id/Party-assets.graphql @@ -29,37 +29,6 @@ fragment ExplorerPartyAssetsAccounts on AccountBalance { } } -fragment ExplorerPartyLinks on AccountBalance { - asset { - name - id - decimals - symbol - source { - __typename - ... on ERC20 { - contractAddress - } - } - } - type - balance - market { - id - decimalPlaces - tradableInstrument { - instrument { - name - product { - ... on Future { - quoteName - } - } - } - } - } -} - query ExplorerPartyAssets($partyId: ID!) { partiesConnection(id: $partyId) { edges { diff --git a/apps/explorer/src/app/routes/parties/id/__generated__/Party-assets.ts b/apps/explorer/src/app/routes/parties/id/__generated__/Party-assets.ts index 1f6b6262d..dfe632305 100644 --- a/apps/explorer/src/app/routes/parties/id/__generated__/Party-assets.ts +++ b/apps/explorer/src/app/routes/parties/id/__generated__/Party-assets.ts @@ -64,7 +64,7 @@ export const ExplorerPartyAssetsDocument = gql` } stakingSummary { currentStakeAvailable - linkings(pagination: {first: 100}) { + linkings(pagination: {last: 100}) { edges { node { type @@ -113,4 +113,4 @@ export function useExplorerPartyAssetsLazyQuery(baseOptions?: Apollo.LazyQueryHo } export type ExplorerPartyAssetsQueryHookResult = ReturnType; export type ExplorerPartyAssetsLazyQueryHookResult = ReturnType; -export type ExplorerPartyAssetsQueryResult = Apollo.QueryResult; +export type ExplorerPartyAssetsQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/apps/explorer/src/app/routes/parties/id/components/party-block-stake.tsx b/apps/explorer/src/app/routes/parties/id/components/party-block-stake.tsx index 5121f1ff1..6b45e73a5 100644 --- a/apps/explorer/src/app/routes/parties/id/components/party-block-stake.tsx +++ b/apps/explorer/src/app/routes/parties/id/components/party-block-stake.tsx @@ -42,14 +42,14 @@ export const PartyBlockStake = ({ linkedLength && linkedLength > 0 ? p?.stakingSummary?.linkings?.edges ?.reduce((total, e) => { - const accumulator = new BigNumber(total) - const diff = new BigNumber(e?.node.amount || 0) + const accumulator = new BigNumber(total); + const diff = new BigNumber(e?.node.amount || 0); if (e?.node.type === 'TYPE_LINK') { return accumulator.plus(diff); } else if (e?.node.type === 'TYPE_UNLINK') { return accumulator.minus(diff); } else { - return accumulator + return accumulator; } }, new BigNumber(0)) .toString()