We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 378993b commit e701530Copy full SHA for e701530
.changeset/rich-peaches-cheer.md
@@ -0,0 +1,5 @@
1
+---
2
+"thirdweb": patch
3
4
+
5
+Fix buyWithCrypto false not respected when going back from quote
packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx
@@ -512,8 +512,9 @@ function BuyScreenContent(props: BuyScreenContentProps) {
512
client={client}
513
onBack={() => {
514
if (
515
- screen.id === "buy-with-crypto" ||
516
- screen.id === "buy-with-fiat"
+ (screen.id === "buy-with-crypto" ||
+ screen.id === "buy-with-fiat") &&
517
+ enabledPaymentMethods.buyWithCryptoEnabled
518
) {
519
setScreen({
520
id: "select-from-token",
0 commit comments