fix(curriculum): freeze RSVP confirmation message on submit by Salava-marquina · Pull Request #69901 · freeCodeCamp/freeCodeCamp · GitHub
Skip to content

fix(curriculum): freeze RSVP confirmation message on submit - #69901

Open
Salava-marquina wants to merge 1 commit into
freeCodeCamp:mainfrom
Salava-marquina:fix/rsvp-confirmation-snapshot
Open

fix(curriculum): freeze RSVP confirmation message on submit#69901
Salava-marquina wants to merge 1 commit into
freeCodeCamp:mainfrom
Salava-marquina:fix/rsvp-confirmation-snapshot

Conversation

@Salava-marquina

Copy link
Copy Markdown

Fixes #69837

Bug

After submitting the RSVP form, the confirmation message read directly from the live form state. This meant editing any input after submission (without resubmitting) would also update the already-displayed confirmation message, even though nothing was resubmitted.

Fix

Added a separate rsvpDetails state that snapshots the form data at the moment of submit (inside handleSubmit), and updated the confirmation message to render from that snapshot instead of the live formData. This freezes the confirmation at its originally submitted values regardless of further edits to the form.

Testing

Verified the behavior change in an isolated CodePen reproduction using the same component logic: submitted the form, then edited an input without resubmitting, and confirmed the confirmation message stayed frozen (previously it would update live).

Note

I noticed #69841 is already open addressing this same issue. Submitting this on freeCodeCamp's contribution workflow — happy to have this closed if that one merges first.

Checklist:

Closes #69837

Fixes freeCodeCamp#69837 

Signed-off-by: Naman Shah <naman.gdsc2@gmail.com>
@Salava-marquina
Salava-marquina requested review from a team as code owners September 5, 2026 13:15
@github-actions github-actions Bot added the scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. label Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example project in Build an Event RSVP lab allows changes to confirmation message

1 participant