From 1d1fc51f15b7230ee5f71ebbff0c79d7333e77ec Mon Sep 17 00:00:00 2001 From: Anton Tranelis <31516529+antontranelis@users.noreply.github.com> Date: Fri, 10 Oct 2025 20:21:38 +0200 Subject: [PATCH] Update lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView/hooks.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../Subcomponents/ItemPopupComponents/HeaderView/hooks.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView/hooks.ts b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView/hooks.ts index e2cec281..5d13af9b 100644 --- a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView/hooks.ts +++ b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView/hooks.ts @@ -14,12 +14,10 @@ export const useNavigationUrl = (coordinates?: [number, number]) => { const [longitude, latitude] = coordinates - if (isMobile) { - return `geo:${latitude},${longitude}` - } - if (isIOS) { return `https://maps.apple.com/?daddr=${latitude},${longitude}` + } else if (isMobile) { + return `geo:${latitude},${longitude}` } else { return `https://www.google.com/maps/dir/?api=1&destination=${latitude},${longitude}` }