[SDK] Fix buyWithCrypto false not respected when returning from quote (#7069)

This commit is contained in:
Joaquim Verges
2025-05-16 04:57:48 -07:00
committed by GitHub
parent e62fd3fe40
commit da2a2a0e86
2 changed files with 8 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---
Fix buyWithCrypto false not respected when going back from quote
@@ -510,8 +510,9 @@ function BuyScreenContent(props: BuyScreenContentProps) {
client={client}
onBack={() => {
if (
screen.id === "buy-with-crypto" ||
screen.id === "buy-with-fiat"
(screen.id === "buy-with-crypto" ||
screen.id === "buy-with-fiat") &&
enabledPaymentMethods.buyWithCryptoEnabled
) {
setScreen({
id: "select-from-token",