diff --git a/frontend-admin/src/screens/delivery/DashboardScreen.tsx b/frontend-admin/src/screens/delivery/DashboardScreen.tsx index 36b5f58f..47d11af8 100644 --- a/frontend-admin/src/screens/delivery/DashboardScreen.tsx +++ b/frontend-admin/src/screens/delivery/DashboardScreen.tsx @@ -462,8 +462,8 @@ export default function DashboardScreen() { const encoded = encodeURIComponent(address); const wazeApp = `waze://?q=${encoded}&navigate=yes`; const wazeWeb = `https://waze.com/ul?q=${encoded}&navigate=yes`; - Linking.canOpenURL(wazeApp).then((supported) => { - Linking.openURL(supported ? wazeApp : wazeWeb); + Linking.openURL(wazeApp).catch(() => { + Linking.openURL(wazeWeb); }); };