We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 490497c commit 5a069feCopy full SHA for 5a069fe
2 files changed
.changeset/violet-areas-jump.md
@@ -0,0 +1,5 @@
1
+---
2
+"thirdweb": patch
3
4
+
5
+Always connect to destination chain if available in PayEmbed
packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx
@@ -271,8 +271,8 @@ function BuyScreenContent(props: BuyScreenContentProps) {
271
<WalletSwitcherConnectionScreen
272
accountAbstraction={props.connectOptions?.accountAbstraction}
273
appMetadata={props.connectOptions?.appMetadata}
274
- chain={props.connectOptions?.chain}
275
- chains={props.connectOptions?.chains}
+ chain={toChain || props.connectOptions?.chain}
+ chains={[toChain, ...(props.connectOptions?.chains || [])]}
276
client={props.client}
277
connectLocale={props.connectLocale}
278
isEmbed={props.isEmbed}
0 commit comments