Skip to content

fix: correct switch target in renderLNURLDetails for tag labels#114

Closed
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/fix-lnurl-tag-label-20260601
Closed

fix: correct switch target in renderLNURLDetails for tag labels#114
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/fix-lnurl-tag-label-20260601

Conversation

@andrerfneves

Copy link
Copy Markdown
Owner

Summary

The statement in was comparing (always since is ) instead of (the actual tag value from ). This meant the / label mappings were never applied.

Changes

  • Changed to so the tag label mapping works correctly for LNURL pay and withdraw requests.

Test Plan

  • Code review confirms the fix is correct
  • The switch now evaluates against the actual LNURL tag value instead of the constant key name

The switch statement was comparing  (always 'tag' since LNURL_TAG_KEY
is 'tag') instead of  (the actual tag value from decodedInvoice).
This meant the payRequest/withdrawRequest labels were never applied.

Change  to  so the tag label mapping works
correctly for LNURL pay and withdraw requests.
@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
lightning-decoder Ready Ready Preview, Comment Jun 1, 2026 12:01am

@andrerfneves

Copy link
Copy Markdown
Owner Author

Closing as obsolete after the shadcn/Tailwind migration was merged. This PR targets src/app.jsx, which no longer exists on main; the results rendering was replaced by the new React/TSX component structure.

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