@@ -49,13 +44,7 @@ function FieldRow({
{
- const inputValue = e.target.value
- if (inputValue === "") {
- onChange("")
- } else {
- const v = parseInt(inputValue, 10)
- if (!isNaN(v)) onChange(v)
- }
+ const v = parseInt(e.target.value, 10)
+ if (!isNaN(v)) onChange(v)
}}
className={cn(
"w-12 h-7 text-center text-sm font-mono bg-[#f7f8fa]",
"border-x border-[#e2e6ea]",
"focus:outline-none focus:bg-[#ffffff]",
- "[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none",
- hasError && "text-[#d92d20] border-[#d92d20]"
+ "[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none"
)}
/>