Skip to content

Commit

Permalink
fix execute epoch tx
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser committed Jan 17, 2024
1 parent 427c55d commit c9d5850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion centrifuge-app/src/components/LiquidityEpochSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions centrifuge-app/src/utils/tinlake/useTinlakePools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down Expand Up @@ -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,
}
Expand Down

0 comments on commit c9d5850

Please sign in to comment.