Ensure the default value works as expected

This commit is contained in:
Nicolas Mowen 2024-09-25 07:59:37 -06:00
parent aac9a22a4b
commit 28d2f72a96

View File

@ -501,7 +501,9 @@ function TimeRangeFilterButton({
className="text-md mx-4 w-full border border-input bg-background p-1 text-secondary-foreground hover:bg-accent hover:text-accent-foreground dark:[color-scheme:dark]" className="text-md mx-4 w-full border border-input bg-background p-1 text-secondary-foreground hover:bg-accent hover:text-accent-foreground dark:[color-scheme:dark]"
id="startTime" id="startTime"
type="time" type="time"
value={selectedBeforeHour} value={
selectedBeforeHour == "24:00" ? "23:59" : selectedBeforeHour
}
step="60" step="60"
onChange={(e) => { onChange={(e) => {
const clock = e.target.value; const clock = e.target.value;