Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/rich-peaches-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Fix buyWithCrypto false not respected when going back from quote
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,9 @@
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

Check warning on line 515 in packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx#L513-L515

Added lines #L513 - L515 were not covered by tests
) {
setScreen({
id: "select-from-token",
Expand Down
Loading