Skip to content

Commit

Permalink
fix dosage (#6626)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshrafMd-1 authored Nov 15, 2023
1 parent fb69380 commit 03b8e0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Components/Form/FormFields/NumericWithUnitsFormField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
/>
<div className="absolute inset-y-0 right-0 flex items-center">
<select
Expand Down

0 comments on commit 03b8e0a

Please sign in to comment.