Skip to content

Commit

Permalink
Revert "test: find out what permission api returns in dev"
Browse files Browse the repository at this point in the history
This reverts commit 2833dfd.
  • Loading branch information
vesameskanen committed Dec 5, 2024
1 parent 2833dfd commit 4448488
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/component/itinerary/navigator/hooks/useRealtimeLegs.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ const useRealtimeLegs = (initialLegs, mapRef, relayEnvironment) => {

const enableMapTracking = useCallback(async () => {
const permission = await checkPositioningPermission();
alert(permission.state);
const isPermissionGranted = permission.state === 'granted';
const isPermissionGranted = permission.state === 'granted' || true;
if (isPermissionGranted) {
mapRef?.enableMapTracking();
}
Expand Down

0 comments on commit 4448488

Please sign in to comment.