File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ function CardNumberParameterInputs({
32
32
key = 'multipleOf'
33
33
type = 'number'
34
34
onChange = { ( ev : SyntheticInputEvent < HTMLInputElement > ) => {
35
- let newVal = parseFloat ( ev . target . value ) ;
35
+ let newVal : null | number = parseFloat ( ev . target . value ) ;
36
36
if ( Number . isNaN ( newVal ) ) newVal = null ;
37
37
onChange ( {
38
38
...parameters ,
@@ -48,7 +48,7 @@ function CardNumberParameterInputs({
48
48
key = 'minimum'
49
49
type = 'number'
50
50
onChange = { ( ev : SyntheticInputEvent < HTMLInputElement > ) => {
51
- let newVal = parseFloat ( ev . target . value ) ;
51
+ let newVal : null | number = parseFloat ( ev . target . value ) ;
52
52
if ( Number . isNaN ( newVal ) ) newVal = null ;
53
53
// change either min or exclusiveMin depending on which one is active
54
54
if ( parameters . exclusiveMinimum ) {
@@ -98,7 +98,7 @@ function CardNumberParameterInputs({
98
98
key = 'maximum'
99
99
type = 'number'
100
100
onChange = { ( ev : SyntheticInputEvent < HTMLInputElement > ) => {
101
- let newVal = parseFloat ( ev . target . value ) ;
101
+ let newVal : null | number = parseFloat ( ev . target . value ) ;
102
102
if ( Number . isNaN ( newVal ) ) newVal = null ;
103
103
// change either max or exclusiveMax depending on which one is active
104
104
if ( parameters . exclusiveMinimum ) {
You can’t perform that action at this time.
0 commit comments