File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -126,16 +126,12 @@ function useField<FormValues: FormValuesShape>(
126
126
* before calling `onBlur()`, but before the field has had a chance to receive
127
127
* the value update from Final Form.
128
128
*/
129
- const fieldState = form . getFieldState ( state . name )
130
- // this ternary is primarily to appease the Flow gods
131
- // istanbul ignore next
132
- state . change (
133
- format ( fieldState ? fieldState . value : state . value , state . name )
134
- )
129
+ const fieldState : any = form . getFieldState ( state . name )
130
+ state . change ( format ( fieldState . value , state . name ) )
135
131
}
136
132
} ,
137
133
// eslint-disable-next-line react-hooks/exhaustive-deps
138
- [ state . name , state . value , format , formatOnBlur ]
134
+ [ state . name , format , formatOnBlur ]
139
135
) ,
140
136
onChange : React . useCallback (
141
137
( event : SyntheticInputEvent < * > | any ) => {
You can’t perform that action at this time.
0 commit comments