Skip to content

fix(#281): reset investment form amount after successful submission - #334

Open
laurentketterle-hub wants to merge 1 commit into
Heliobond:mainfrom
laurentketterle-hub:fix/issue-281-form-reset
Open

fix(#281): reset investment form amount after successful submission#334
laurentketterle-hub wants to merge 1 commit into
Heliobond:mainfrom
laurentketterle-hub:fix/issue-281-form-reset

Conversation

@laurentketterle-hub

Copy link
Copy Markdown

Fixes #281

Clears the investment amount state (setAmount("100")) when the user navigates away from the success screen. This prevents the form from prefilling old values the next time the user opens the deposit flow.

Changes

  • Reset amount to its default "100" in the success step onDone handler before navigating to portfolio

Testing

  • Complete a deposit ? verify form starts fresh on next visit

…mission

Clear the amount state when navigating away from the success
screen so the next deposit starts fresh instead of prefilling
old values.
@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

@laurentketterle-hub is attempting to deploy a commit to the David Dada's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

bug: Investment form state not cleared after successful submission — prefills old data

1 participant