diff --git a/src/components/settings/SettingTimerField.tsx b/src/components/settings/SettingTimerField.tsx index 958a1b6..bb1adfe 100644 --- a/src/components/settings/SettingTimerField.tsx +++ b/src/components/settings/SettingTimerField.tsx @@ -35,6 +35,9 @@ const SettingTimerField = ({ value, onChange, }: SettingTimerFieldProps) => { + const format = (val: number) => `${val}s`; + const parse = (val: string) => Number(val.replace('s', '')); + return ( @@ -60,10 +63,10 @@ const SettingTimerField = ({ onChange(number)} + onChange={(val) => onChange(parse(val))} width="85px" >