Skip to content

Commit

Permalink
Merge pull request #27542 from akinwale/task-26869
Browse files Browse the repository at this point in the history
fix: prevent fetching address suggestions in forced offline mode
  • Loading branch information
nkuoch authored Sep 19, 2023
2 parents 57a7da5 + 0a51bb7 commit 56271f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"react-native-fast-image": "^8.6.3",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "2.12.0",
"react-native-google-places-autocomplete": "git+https://github.com/Expensify/react-native-google-places-autocomplete.git#ee87343c3e827ff7818abc71b6bb04fcc1f120e0",
"react-native-google-places-autocomplete": "git+https://github.com/Expensify/react-native-google-places-autocomplete.git#fd212e1e93cad72e97efad03893bea6d074d3e07",
"react-native-haptic-feedback": "^1.13.0",
"react-native-image-pan-zoom": "^2.1.12",
"react-native-image-picker": "^5.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/AddressSearch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ function AddressSearch(props) {
query={query}
requestUrl={{
useOnPlatform: 'all',
url: ApiUtils.getCommandURL({command: 'Proxy_GooglePlaces&proxyUrl='}),
url: props.network.isOffline ? null : ApiUtils.getCommandURL({command: 'Proxy_GooglePlaces&proxyUrl='}),
}}
textInputProps={{
InputComp: TextInput,
Expand Down

0 comments on commit 56271f0

Please sign in to comment.