File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ function usePlacesWidget(props) {
77
77
78
78
if ( typeof google === "undefined" ) return console . error ( "Google has not been found. Make sure your provide apiKey prop." ) ;
79
79
if ( ! ( ( _google$maps = google . maps ) !== null && _google$maps !== void 0 && _google$maps . places ) ) return console . error ( "Google maps places API must be loaded." ) ;
80
- if ( ! inputRef . current instanceof HTMLInputElement ) return console . error ( "Input ref must be HTMLInputElement." ) ;
80
+ if ( ! ( inputRef . current instanceof HTMLInputElement ) ) return console . error ( "Input ref must be HTMLInputElement." ) ;
81
81
autocompleteRef . current = new google . maps . places . Autocomplete ( inputRef . current , config ) ;
82
82
83
83
if ( autocompleteRef . current ) {
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export default function usePlacesWidget(props) {
62
62
if ( ! google . maps ?. places )
63
63
return console . error ( "Google maps places API must be loaded." ) ;
64
64
65
- if ( ! inputRef . current instanceof HTMLInputElement )
65
+ if ( ! ( inputRef . current instanceof HTMLInputElement ) )
66
66
return console . error ( "Input ref must be HTMLInputElement." ) ;
67
67
68
68
autocompleteRef . current = new google . maps . places . Autocomplete (
You can’t perform that action at this time.
0 commit comments