-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] Fix: PayEmbed Error State #5463
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
[SDK] Fix: PayEmbed Error State #5463
Conversation
🦋 Changeset detectedLatest commit: f368793 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
| console.log("BuyScreenContent"); | ||
|
|
||
| const activeAccount = useActiveAccount(); | ||
| const { payer, setPayer } = usePayerSetup(); | ||
| console.log("payer", payer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the console.log statements on lines 159 and 162. These appear to be debugging statements that were inadvertently committed. The codebase should remain free of development logging in production.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5463 +/- ##
==========================================
- Coverage 45.52% 45.49% -0.04%
==========================================
Files 1070 1070
Lines 55718 55770 +52
Branches 4029 4034 +5
==========================================
+ Hits 25367 25372 +5
- Misses 29664 29711 +47
Partials 687 687
*This pull request uses carry forward flags. Click here to find out more.
|
Merge activity
|
CNCT-2385 <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on improving error handling and user experience in the `BuyScreen` and `TransactionModeScreen` components of the `thirdweb` package. It adds error states for loading issues and modifies error messages for better clarity. ### Detailed summary - Updated error message for missing account in `useBuyTxStates.ts`. - Introduced an error state in `BuyScreen` for `supportedDestinationsQuery` failures. - Added loading and error handling in `TransactionModeScreen` for transaction cost and chain data. - Enhanced user feedback with `ErrorState` and `LoadingScreen` components. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
5d9a1b3 to
f368793
Compare
CNCT-2385
PR-Codex overview
This PR focuses on enhancing error handling in the
BuyandTransactionModeScreencomponents of thethirdwebpackage. It improves user experience by providing clearer error messages and loading states.Detailed summary
"No account"to"No payer account found"inuseBuyTxStates.ts.supportedDestinationsQueryinBuyScreen.tsx.TransactionModeScreenwith appropriate user feedback.BuyScreenContent.