Skip to content

fix: Filter unpaid invoices from lightning payments#224

Merged
macterra merged 2 commits intomainfrom
223-filter-unpaid-invoices
Mar 17, 2026
Merged

fix: Filter unpaid invoices from lightning payments#224
macterra merged 2 commits intomainfrom
223-filter-unpaid-invoices

Conversation

@macterra
Copy link
Collaborator

@macterra macterra commented Mar 17, 2026

Summary

  • Filter out pending/unpaid invoices in lnbits.getPayments() so the Payments tab only shows settled transactions

Closes #223

Test plan

  • Verify Payments tab no longer shows unpaid invoices
  • Verify paid incoming and outgoing transactions still appear

🤖 Generated with Claude Code

macterra and others added 2 commits March 16, 2026 20:19
Only return settled transactions from getPayments, filtering out
pending/unpaid invoices that clutter the payments tab.

Closes #223

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
LNbits uses status: 'pending'/'success', not pending: true/false.
Filter on status === 'success' to only show settled transactions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@macterra macterra merged commit 80befa6 into main Mar 17, 2026
13 checks passed
@macterra macterra deleted the 223-filter-unpaid-invoices branch March 17, 2026 00:34
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.

Lightning payments tab shows unpaid invoices

1 participant