From 03b8e0a395a56801dbb295b2c9d2a482332283ec Mon Sep 17 00:00:00 2001
From: Ashraf Mohammed <98876115+AshrafMd-1@users.noreply.github.com>
Date: Wed, 15 Nov 2023 17:15:22 +0530
Subject: [PATCH 1/2] fix dosage (#6626)
---
src/Components/Form/FormFields/NumericWithUnitsFormField.tsx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/Components/Form/FormFields/NumericWithUnitsFormField.tsx b/src/Components/Form/FormFields/NumericWithUnitsFormField.tsx
index 02aa03fdf71..02f98a7ba17 100644
--- a/src/Components/Form/FormFields/NumericWithUnitsFormField.tsx
+++ b/src/Components/Form/FormFields/NumericWithUnitsFormField.tsx
@@ -35,7 +35,9 @@ export default function NumericWithUnitsFormField(props: Props) {
autoComplete={props.autoComplete}
required={field.required}
value={numValue}
- onChange={(e) => field.handleChange(e.target.value + " " + unitValue)}
+ onChange={(e) =>
+ field.handleChange(Number(e.target.value) + " " + unitValue)
+ }
/>