Skip to content

fix(withdraw): prevent user cancellations from being reported as Sentry errors - #2543

Merged
mul53 merged 1 commit into
masterfrom
seer/fix/sentry-withdraw-cancel
Sep 21, 2026
Merged

mul53 merged 1 commit into
masterfrom
seer/fix/sentry-withdraw-cancel

Conversation

@sentry

@sentry sentry Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Previously, when a user cancelled a transaction initiated via the useWithdraw hook (e.g., by dismissing their wallet prompt), the resulting Error: User cancelled transaction was unconditionally captured by Sentry. This led to false-positive error reports, cluttering Sentry with expected user behavior.

This change guards the Sentry.captureException call in hooks/useWithdraw.ts with if (!isUserCancelledError(error)). The isUserCancelledError utility already existed and was used for analytics, but not for Sentry reporting. Now, deliberate user cancellations will no longer be reported as errors.

New unit tests have been added for useWithdraw to ensure that Sentry is not called for user cancellations but is correctly called for other types of errors.

Fixes SOLID-VS

@sentry <feedback>: Autofix iterates on these changes
@sentry stop iterating: Autofix stops iterating on this run

This PR was automatically generated by Sentry. You can adjust this setting at any time.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated
solid-app Ignored Ignored Preview Sep 21, 2026 10:37am UTC
solid-app-staging Ignored Ignored Preview Sep 21, 2026 10:37am UTC

Request Review

@mul53
mul53 merged commit ba84196 into master Sep 21, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant