diff --git a/app/components/reusable/InputVector/InputVector.tsx b/app/components/reusable/InputVector/InputVector.tsx index 6a3f7836c9..cd8172d6b9 100644 --- a/app/components/reusable/InputVector/InputVector.tsx +++ b/app/components/reusable/InputVector/InputVector.tsx @@ -51,7 +51,7 @@ export const InputVector = ({ if (newValue === "" || newValue === "-" || newValue === ".") { return newValue; } - return /^-?[0-9]*(.[0-9]*)?$/.test(newValue) ? newValue : oldValue; + return /^-?\d*(\.\d{0,2})?$/.test(newValue) ? newValue : oldValue; } function handleOnChange(event: ChangeEvent) {