[SDK] Fix buyWithCrypto false not respected when returning from quote (#7069)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user