Skip to content

Commit 1eeab4c

Browse files
committed
Fix flow errors
1 parent 096ffaf commit 1eeab4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/formBuilder/defaults/numberInputs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function CardNumberParameterInputs({
3232
key='multipleOf'
3333
type='number'
3434
onChange={(ev: SyntheticInputEvent<HTMLInputElement>) => {
35-
let newVal = parseFloat(ev.target.value);
35+
let newVal: null | number = parseFloat(ev.target.value);
3636
if (Number.isNaN(newVal)) newVal = null;
3737
onChange({
3838
...parameters,
@@ -48,7 +48,7 @@ function CardNumberParameterInputs({
4848
key='minimum'
4949
type='number'
5050
onChange={(ev: SyntheticInputEvent<HTMLInputElement>) => {
51-
let newVal = parseFloat(ev.target.value);
51+
let newVal: null | number = parseFloat(ev.target.value);
5252
if (Number.isNaN(newVal)) newVal = null;
5353
// change either min or exclusiveMin depending on which one is active
5454
if (parameters.exclusiveMinimum) {
@@ -98,7 +98,7 @@ function CardNumberParameterInputs({
9898
key='maximum'
9999
type='number'
100100
onChange={(ev: SyntheticInputEvent<HTMLInputElement>) => {
101-
let newVal = parseFloat(ev.target.value);
101+
let newVal: null | number = parseFloat(ev.target.value);
102102
if (Number.isNaN(newVal)) newVal = null;
103103
// change either max or exclusiveMax depending on which one is active
104104
if (parameters.exclusiveMinimum) {

0 commit comments

Comments
 (0)