()
| 329 | |
| 330 | // BETWEEN duration display - convert seconds to display unit |
| 331 | const getBetweenDurationDisplay = (): { minValue: string; maxValue: string; unit: number } => { |
| 332 | return { |
| 333 | minValue: condition.minValue === undefined ? "" : formatNumericInput(condition.minValue / betweenDurationUnit, 2), |
| 334 | maxValue: condition.maxValue === undefined ? "" : formatNumericInput(condition.maxValue / betweenDurationUnit, 2), |
| 335 | unit: betweenDurationUnit, |
| 336 | }; |
| 337 | }; |
| 338 | |
| 339 | const handleBetweenDurationChange = (minVal: string, maxVal: string, unit: number) => { |
| 340 | setBetweenDurationUnit(unit); |
no test coverage detected