File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
packages/thirdweb/src/react
web/ui/Bridge/payment-details Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ export function useStepExecutor(
237
237
if ( tx . action === "approval" || tx . action === "fee" ) {
238
238
// don't poll status for approval transactions, just wait for confirmation
239
239
await waitForReceipt ( result ) ;
240
- await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ; // Add an extra second delay for RPC to catch up to new state
240
+ await new Promise ( ( resolve ) => setTimeout ( resolve , 2000 ) ) ; // Add an extra 2 second delay for RPC to catch up to new state
241
241
return ;
242
242
}
243
243
Original file line number Diff line number Diff line change 2
2
import { useQuery } from "@tanstack/react-query" ;
3
3
import { useMemo } from "react" ;
4
4
import { trackPayEvent } from "../../../../../analytics/track/pay.js" ;
5
+ import { defineChain } from "../../../../../chains/utils.js" ;
5
6
import type { ThirdwebClient } from "../../../../../client/client.js" ;
6
7
import { useCustomTheme } from "../../../../core/design-system/CustomThemeProvider.js" ;
7
8
import { radius , spacing } from "../../../../core/design-system/index.js" ;
@@ -105,7 +106,10 @@ export function PaymentDetails({
105
106
} ) ;
106
107
107
108
const chainsQuery = useChainsQuery (
108
- preparedQuote . steps . flatMap ( ( s ) => s . transactions . map ( ( t ) => t . chain ) ) ,
109
+ preparedQuote . steps . flatMap ( ( s ) => [
110
+ defineChain ( s . originToken . chainId ) ,
111
+ defineChain ( s . destinationToken . chainId ) ,
112
+ ] ) ,
109
113
10 ,
110
114
) ;
111
115
const chainsMetadata = useMemo (
You can’t perform that action at this time.
0 commit comments