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 61152dd commit f259dc5Copy full SHA for f259dc5
.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
@@ -510,8 +510,9 @@ function BuyScreenContent(props: BuyScreenContentProps) {
510
client={client}
511
onBack={() => {
512
if (
513
- screen.id === "buy-with-crypto" ||
514
- screen.id === "buy-with-fiat"
+ (screen.id === "buy-with-crypto" ||
+ screen.id === "buy-with-fiat") &&
515
+ enabledPaymentMethods.buyWithCryptoEnabled
516
) {
517
setScreen({
518
id: "select-from-token",
0 commit comments