fix(ui): narrow duration selection value

This commit is contained in:
Yuneng Jiang 2026-08-12 14:17:31 -07:00
parent 78b36699df
commit 298117acca
No known key found for this signature in database

View file

@ -19,7 +19,7 @@ export default function DurationSelect({ className, value, onChange }: DurationS
onValueChange={(nextValue) => {
const selectedOption = DURATION_OPTIONS.find((option) => option.value === nextValue);
if (selectedOption) {
onChange?.(nextValue, selectedOption);
onChange?.(selectedOption.value, selectedOption);
}
}}
>