diff --git a/centrifuge-app/src/components/LiquidityEpochSection.tsx b/centrifuge-app/src/components/LiquidityEpochSection.tsx index 7bdd776238..d53674c42e 100644 --- a/centrifuge-app/src/components/LiquidityEpochSection.tsx +++ b/centrifuge-app/src/components/LiquidityEpochSection.tsx @@ -280,7 +280,7 @@ function EpochStatusExecution({ pool }: { pool: Pool }) { switchMap((execTx) => { const tx = api.tx.utility.batchAll( [ - ...execTx.method.args[0], + execTx, orders?.length ? api.tx.utility.batch( orders diff --git a/centrifuge-app/src/utils/tinlake/useTinlakePools.ts b/centrifuge-app/src/utils/tinlake/useTinlakePools.ts index 02288d5b49..7233ef9007 100644 --- a/centrifuge-app/src/utils/tinlake/useTinlakePools.ts +++ b/centrifuge-app/src/utils/tinlake/useTinlakePools.ts @@ -140,7 +140,7 @@ export function useTinlakePools(suspense = false) { }) } export function useTinlakeLoans(poolId: string) { - const tinlakePools = useTinlakePools(true) + const tinlakePools = useTinlakePools(poolId.startsWith('0x')) const pool = tinlakePools?.data?.pools?.find((p) => p.id.toLowerCase() === poolId.toLowerCase()) @@ -177,7 +177,7 @@ export function useTinlakeLoans(poolId: string) { })) as TinlakeLoan[] }, { - enabled: !!pool && !!poolId && !!poolId.startsWith('0x'), + enabled: !!pool && !!poolId && poolId.startsWith('0x'), staleTime: Infinity, suspense: true, }