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(
237237 if ( tx . action === "approval" || tx . action === "fee" ) {
238238 // don't poll status for approval transactions, just wait for confirmation
239239 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
241241 return ;
242242 }
243243
Original file line number Diff line number Diff line change 22import { useQuery } from "@tanstack/react-query" ;
33import { useMemo } from "react" ;
44import { trackPayEvent } from "../../../../../analytics/track/pay.js" ;
5+ import { defineChain } from "../../../../../chains/utils.js" ;
56import type { ThirdwebClient } from "../../../../../client/client.js" ;
67import { useCustomTheme } from "../../../../core/design-system/CustomThemeProvider.js" ;
78import { radius , spacing } from "../../../../core/design-system/index.js" ;
@@ -105,7 +106,10 @@ export function PaymentDetails({
105106 } ) ;
106107
107108 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+ ] ) ,
109113 10 ,
110114 ) ;
111115 const chainsMetadata = useMemo (
You can’t perform that action at this time.
0 commit comments