Skip to content
Closed
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/good-mangos-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Fix race condition in onramp widget
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@
} else if (swapQuoteQuery.data && !swapTxHash) {
// Execute swap/bridge
try {
await new Promise((resolve) => setTimeout(resolve, 1000));

Check warning on line 424 in packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/fiat/OnRampScreen.tsx

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/fiat/OnRampScreen.tsx#L424

Added line #L424 was not covered by tests
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think that's the issue

const result = await swapMutation.mutateAsync({
quote: swapQuoteQuery.data,
});
Expand Down