Skip to content

Commit

Permalink
refactor executeSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Truong committed Nov 17, 2021
1 parent 032f446 commit c4d4bf4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sample-app/src/utils/geolocationutils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,15 @@ export async function executeSearchWithUserLocation(
latitude: position.coords.latitude,
longitude: position.coords.longitude,
})
executeSearch();
},
(err) => {
console.error(err);
console.error('unable to determine user location.');
executeSearch();
},
Object.assign(defaultGeolocationOptions, geolocationOptions)
);
} else {
console.warn('unable to determine user location.');
executeSearch();
}
executeSearch();
}

0 comments on commit c4d4bf4

Please sign in to comment.