Frontend Track • Beginner • 3 mins review
Fix: Reset form loading state after a failed save
Makes the profile form recover properly when the save request fails instead of leaving the UI permanently busy.
Scenario Goal & Context
Goal: Keep the loading indicator accurate across both successful and failed submissions.
Background: Users reported that after a failed save they could no longer click the submit button without refreshing the page.
Changed Files (1)
- src/components/ProfileForm.tsx +9 -0
Ready to practice reviewing this PR?
Open this scenario inside the interactive DiffSense simulator to leave inline comments and receive an automated score.
Start Review Session