Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Jan 29, 2025

PR-Codex overview

This PR focuses on fixing the logging of a react-query error in the thirdweb Pay Modal when it is opened, ensuring that an error is thrown only when both account and wallet are not available.

Detailed summary

  • Updated the condition in TransactionModal to throw an error if account or wallet is missing.
  • Added a return null statement after the error throw.
  • Modified the enabled property to check both wallet and account.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@MananTank MananTank requested review from a team as code owners January 29, 2025 20:05
@linear
Copy link

linear bot commented Jan 29, 2025

@changeset-bot
Copy link

changeset-bot bot commented Jan 29, 2025

🦋 Changeset detected

Latest commit: 113e1a9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
thirdweb Patch
@thirdweb-dev/wagmi-adapter Patch

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

@vercel
Copy link

vercel bot commented Jan 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 9:03pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 9:03pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 9:03pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 9:03pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Jan 29, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

if (!account || !wallet) return;
// Query data cannot be undefined, return null
if (!account || !wallet) {
return null;
Copy link
Member

Choose a reason for hiding this comment

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

should it just throw instead so it retries later?

also should we add !!account to enabled prop below?

Copy link
Member Author

Choose a reason for hiding this comment

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

updated

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 46.55 KB (0%) 932 ms (0%) 782 ms (+134.14% 🔺) 1.8 s
thirdweb (cjs) 122.35 KB (0%) 2.5 s (0%) 978 ms (+9.55% 🔺) 3.5 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 196 ms (+393.42% 🔺) 308 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 7 ms (-73.23% 🔽) 17 ms
thirdweb/react (minimal + tree-shaking) 19.27 KB (0%) 386 ms (0%) 166 ms (+89.96% 🔺) 551 ms

@joaquim-verges joaquim-verges merged commit bf43196 into main Jan 30, 2025
27 of 28 checks passed
@joaquim-verges joaquim-verges deleted the 01-30-_tool-3260_sdk_fix_pay_modal_logging_react-query_error_when_opened branch January 30, 2025 00:59
@joaquim-verges joaquim-verges mentioned this pull request Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants