Skip to content

fix(my-tickets): don't report a confirmed action as failed when the reload fails - #195

Merged
presidojay1 merged 2 commits into
StellarTickets:mainfrom
Smoothjane:fix/62-reload-after-action
Sep 26, 2026
Merged

presidojay1 merged 2 commits into
StellarTickets:mainfrom
Smoothjane:fix/62-reload-after-action

Conversation

@Smoothjane

@Smoothjane Smoothjane commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

In src/app/my-tickets/page.tsx, the list reload after an action ran inside the same try as the on-chain transfer, list-for-resale, or cancel-resale. That action is already confirmed when the reload runs. So if the refresh then failed, the user could see an error on the page for a ticket action that had actually gone through, and might retry it.

Fix

  • New reloadAfterAction(doneMessage) helper. It re-fetches /tickets/mine.
    • On success it shows the normal success notice.
    • On failure it shows " The list could not refresh; reload the page to see the latest state." The action is not reported as failed.
  • handleTransfer, handleListForResale, handleCancelResale:
    • Each records a doneMessage inside its try once signAndSubmit resolves.
    • After the try/catch/finally, it calls reloadAfterAction(doneMessage), and only if the action succeeded. A reload failure can no longer reach the action's catch.
    • The action's own error messages and the busyTicketId handling are unchanged.

Commits

  1. feat(my-tickets): add reloadAfterAction helper for post-action refresh
  2. fix(my-tickets): don't report a confirmed action as failed when reload fails

Notes

Reloads /tickets/mine and reports a failed reload as 'done, but the list
could not refresh' rather than as a failure of the action itself.
…d fails

Move the post-action list reload out of the transfer / list-for-resale /
cancel-resale try blocks so a failed refresh can no longer trigger the
'Could not ...' error for an action that already succeeded on-chain.
@drips-wave

drips-wave Bot commented Sep 26, 2026

Copy link
Copy Markdown

@Smoothjane 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

@netlify

netlify Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for stellartickets failed.

Name Link
🔨 Latest commit 65b2097
🔍 Latest deploy log https://app.netlify.com/projects/stellartickets/deploys/6ab7e9012718cb0008bbcead

@presidojay1
presidojay1 merged commit 8bc378b into StellarTickets:main Sep 26, 2026
0 of 5 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

2 participants