From b43163d449e84a946ef6b2286c4cd201e163e13b Mon Sep 17 00:00:00 2001 From: "reuben.dysarz" Date: Wed, 7 Aug 2024 08:26:23 -0300 Subject: [PATCH] adjust for better comparison --- src/Time/TimeInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Time/TimeInput.tsx b/src/Time/TimeInput.tsx index 97314d9..3aefe22 100644 --- a/src/Time/TimeInput.tsx +++ b/src/Time/TimeInput.tsx @@ -57,7 +57,7 @@ function TimeInput( const onInnerChange = (number: number) => { setControlledValue(`${number}`) - if (number !== 0) { + if (number >= 0) { onChanged(Number(number)) } }