Fix empty state on DurationInput

This commit is contained in:
Justin Edmund 2023-06-17 23:57:19 -07:00
parent 5f23a29fad
commit 7132346a24

View file

@ -206,7 +206,7 @@ const DurationInput = React.forwardRef<HTMLInputElement, Props>(
},
className
)}
value={`${getSeconds()}`.padStart(2, '0')}
value={getSeconds() > 0 ? `${getSeconds()}`.padStart(2, '0') : ''}
onChange={handleSecondsChange}
onKeyUp={handleKeyUp}
onKeyDown={handleKeyDown}