Skip to content

Commit

Permalink
fix: NumberField sould always return a number
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-foucault committed Jan 29, 2020
1 parent c52b0e2 commit 62f86ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/containers/Forms/NumberField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const NumberField: React.FunctionComponent<FieldProps> = ({
allowNegative={allowNegative}
decimalScale={4}
value={formData}
onValueChange={({value}) => onChange(value ? Number(value) : '')}
onValueChange={({floatValue}) => onChange(floatValue)}
/>
);
};
Expand Down

0 comments on commit 62f86ba

Please sign in to comment.