-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Bug Description
When a user enters an invalid shortcode on the results page, an appropriate error message appears. However, if the user then corrects the shortcode to a valid one and submits again, the previous error message remains visible instead of being cleared.
Steps to Reproduce
- Navigate to: https://rankedchoices.com/results
- Enter a shortcode that doesn't exist in the database (e.g., "badshortcode")
- Click "Submit"
- Error message appears: "Either shortcode is incorrect or no one has voted yet."
- Update the shortcode field to one that DOES exist in the database (e.g., "nrj65")
- Click "Submit"
Expected Behavior
The error message should disappear when a valid shortcode is submitted and results are successfully loaded.
Actual Behavior
The error message remains visible even after successfully loading results with a valid shortcode.
Environment
- Browser: Any modern browser
- Page: /results page
- User role: Any user
Priority
Medium - UX issue that doesn't break functionality but confuses users
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels