From ad8de44ae17996428348d0d397ca9f26abfcaf82 Mon Sep 17 00:00:00 2001 From: Onno Visser Date: Mon, 23 Oct 2023 15:17:33 +0200 Subject: [PATCH] Centrifuge App: Fix asset detail when subquery is down (#1653) --- centrifuge-app/src/utils/usePools.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/centrifuge-app/src/utils/usePools.ts b/centrifuge-app/src/utils/usePools.ts index 8ad9e5ae41..3761f24595 100644 --- a/centrifuge-app/src/utils/usePools.ts +++ b/centrifuge-app/src/utils/usePools.ts @@ -65,12 +65,8 @@ export function useAllTransactions(address?: string) { } export function useInvestorTransactions(poolId: string, trancheId?: string, from?: Date, to?: Date) { - const [result] = useCentrifugeQuery( - ['investorTransactions', poolId, trancheId, from, to], - (cent) => cent.pools.getInvestorTransactions([poolId, trancheId, from, to]), - { - suspense: true, - } + const [result] = useCentrifugeQuery(['investorTransactions', poolId, trancheId, from, to], (cent) => + cent.pools.getInvestorTransactions([poolId, trancheId, from, to]) ) return result @@ -81,7 +77,6 @@ export function useBorrowerTransactions(poolId: string, from?: Date, to?: Date) ['borrowerTransactions', poolId, from, to], (cent) => cent.pools.getBorrowerTransactions([poolId, from, to]), { - suspense: true, enabled: !poolId.startsWith('0x'), } ) @@ -119,7 +114,6 @@ export function useBorrowerAssetTransactions(poolId: string, assetId: string, fr ) }, { - suspense: true, enabled: !!pool && !poolId.startsWith('0x') && !!loan, } )