Skip to content
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

fix: WebLN QR fallback for anon users #1858

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Soxasora
Copy link
Member

@Soxasora Soxasora commented Feb 3, 2025

Description

Fixes #1758
When a WebLN wallet request fails (eg. cancelling a transaction) it can't be re-requested until next reload, throwing an error and prompting an invoice retry with QR that fails if the user is not logged in.

This fix throws a "cannot re-enable wallet" WalletError, used to bypass retryPaidAction and to show a QR payment with the same invoice.

Screenshots

Screen.Recording.2025-02-03.at.11.50.58.mov

Additional Context

Fix specifically applied for WebLN

Checklist

Are your changes backwards compatible? Please answer below:
Yes, only affects WebLN wallet

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:
7, more testing

For frontend changes: Tested on mobile, light and dark mode? Please answer below:
n/a

Did you introduce any new environment variables? If so, call them out explicitly here:
No

@Soxasora Soxasora added the bug label Feb 3, 2025
@Soxasora Soxasora force-pushed the anon_webln_qr_fallback branch from 89da4b4 to 53f63c6 Compare February 3, 2025 11:06
@Soxasora Soxasora marked this pull request as ready for review February 4, 2025 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QR code fallbacks don't work for anon if WebLN enabled
1 participant