mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 05:54:56 -06:00
fix rubberbanding when gps lookup fails
This commit is contained in:
parent
23f9391906
commit
43719fde92
1 changed files with 1 additions and 1 deletions
|
|
@ -117,8 +117,8 @@ export default compose(
|
|||
props.setLoading(true);
|
||||
props.setZip(useGPS ? 'usegps' : '');
|
||||
await AsyncStorage.setItem('zipcode', 'usegps');
|
||||
await getLocation();
|
||||
} catch (error) {
|
||||
console.log(error); //eslint-disable-line no-console
|
||||
props.setZip(props.zipcode || '');
|
||||
} finally {
|
||||
props.setLoading(false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue