Skip to content

Fix address truncation, payment resubmit, stale invoice cache and loading timeout - #929

Open
rdj-savyy wants to merge 4 commits into
WHEELBACK:mainfrom
rdj-savyy:drips/rdj-savyy-issues
Open

rdj-savyy wants to merge 4 commits into
WHEELBACK:mainfrom
rdj-savyy:drips/rdj-savyy-issues

Conversation

@rdj-savyy

Copy link
Copy Markdown
Contributor

Closes #922
Closes #921
Closes #920
Closes #919

Summary

4b19732: Show longer wallet address prefix and suffix so accounts are distinguishable (#922)
Added a truncateAddress helper in utils/truncateAddress.ts that keeps 8 leading and 8 trailing characters, and WalletBar.tsx now uses it instead of its 6/4 truncation. The existing WalletBar test expectation was updated accordingly.

6b069b9: Block resubmitting a completed payment after browser back navigation (#921)
Added the useCompletedPaymentGuard hook, which records paid invoice ids in sessionStorage. InvoicePayment.tsx handleConfirmPayment now returns early for an already-paid invoice (or an in-flight submission) and marks the invoice completed after a successful payment.

4858255: Time out invoice retrieval so the loading state always clears (#919)
loadInvoice in hooks/useInvoice.ts now races the fetch against a 30 second timeout, surfacing a timeout error and clearing the timer and loading flag in the finally block.

a3cd1d8: Clear cached invoice details when the connected account changes (#920)
useInvoice accepts an optional account key and resets the cached invoice and error when it changes. InvoicePayment.tsx passes the connected wallet address to it.

@drips-wave

drips-wave Bot commented Oct 17, 2026

Copy link
Copy Markdown

@rdj-savyy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant