From 7132346a2427feaaf9afb0927ff58b2e57986599 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 17 Jun 2023 23:57:19 -0700 Subject: [PATCH] Fix empty state on DurationInput --- components/common/DurationInput/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/common/DurationInput/index.tsx b/components/common/DurationInput/index.tsx index 325af102..91f6cd71 100644 --- a/components/common/DurationInput/index.tsx +++ b/components/common/DurationInput/index.tsx @@ -206,7 +206,7 @@ const DurationInput = React.forwardRef( }, className )} - value={`${getSeconds()}`.padStart(2, '0')} + value={getSeconds() > 0 ? `${getSeconds()}`.padStart(2, '0') : ''} onChange={handleSecondsChange} onKeyUp={handleKeyUp} onKeyDown={handleKeyDown}