You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The election creation form currently allows users to select a "Start Date" in the past. When submitting, the form fails silently: no election is created, but no error message or alert is shown to the user.
Steps to Reproduce
Navigate to /create.
Fill in valid Title and Description.
Set "Start Date" to yesterday's date.
Click "Create Election".
Actual Behavior
The button clicks, but nothing happens. No error toast or alert appears.
Expected Behavior
The system should validate that Start Date > Current Date and show a toast error: "Start time cannot be in the past."
Proposed Solution
Add a validation check in createElection function comparing startTime with new Date().