This repository was archived by the owner on Feb 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -177,7 +177,12 @@ function ApplicationEventInner({
177177 return "" ;
178178 } ;
179179
180- const durationOptions = getDurationOptions ( t ) ;
180+ // convert from minutes to seconds (search page uses minutes, this uses seconds)
181+ const durationOptions = getDurationOptions ( t ) . map ( ( x ) => ( {
182+ label : x . label ,
183+ value : x . value * 60 ,
184+ } ) ) ;
185+
181186 return (
182187 < >
183188 < SubHeadLine >
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ function durationMinuteOptions(t: TFunction) {
5555 return durations ;
5656}
5757
58+ /// @returns an array of duration options in minutes
5859export function getDurationOptions ( t : TFunction ) : DurationOption [ ] {
5960 const times : DurationOption [ ] = [ ] ;
6061 let hour = 2 ;
You can’t perform that action at this time.
0 commit comments