From 4448488dc4c0334e29a8b9336f48a65865a4e023 Mon Sep 17 00:00:00 2001 From: Vesa Meskanen Date: Thu, 5 Dec 2024 11:19:57 +0200 Subject: [PATCH] Revert "test: find out what permission api returns in dev" This reverts commit 2833dfd89b134491cf83dae770245fd83d22c980. --- app/component/itinerary/navigator/hooks/useRealtimeLegs.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/component/itinerary/navigator/hooks/useRealtimeLegs.js b/app/component/itinerary/navigator/hooks/useRealtimeLegs.js index 5b79896039..9e023d4690 100644 --- a/app/component/itinerary/navigator/hooks/useRealtimeLegs.js +++ b/app/component/itinerary/navigator/hooks/useRealtimeLegs.js @@ -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(); }