Skip to content

fix(frontend): FX rate countdown and expiry warning on review step (#670)#734

Merged
Haroldwonder merged 1 commit into
Haroldwonder:mainfrom
AnnabelJoe:fix/670-fx-rate-countdown
Jun 1, 2026
Merged

fix(frontend): FX rate countdown and expiry warning on review step (#670)#734
Haroldwonder merged 1 commit into
Haroldwonder:mainfrom
AnnabelJoe:fix/670-fx-rate-countdown

Conversation

@AnnabelJoe
Copy link
Copy Markdown

Closes #670

Problem

The FX rate was fetched when the user reached the review step and cached for FX_TTL_MS (30 s). If the user stayed on the review step longer than 30 s, the displayed rate became stale with no indication.

Fix

  • Records fxFetchedAt timestamp when entering step 4/5.
  • A 1-second interval counts down the remaining seconds and sets fxExpired when TTL elapses.
  • Review step renders a live countdown (Rate refreshes in Xs) and a prominent alert (Rate expired — please go back and refresh.) when the rate expires.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@AnnabelJoe is attempting to deploy a commit to the Harold's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

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

@Haroldwonder Haroldwonder merged commit c6bcc98 into Haroldwonder:main Jun 1, 2026
1 check failed
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.

SendMoneyFlow.tsx FX rate not refreshed when user stays on review step beyond FX_TTL_MS

2 participants