From 549134511c0a4d24849b67d02c28382eb4be85e8 Mon Sep 17 00:00:00 2001 From: Wojtek Bazant Date: Wed, 27 Nov 2024 15:16:01 +0000 Subject: [PATCH] 0 is an unlikely but valid heading value representing true north --- src/components/map/GeolocationDot.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/map/GeolocationDot.js b/src/components/map/GeolocationDot.js index f836a098..2e6ee9ab 100644 --- a/src/components/map/GeolocationDot.js +++ b/src/components/map/GeolocationDot.js @@ -128,7 +128,9 @@ const GeolocationDot = () => { isClickable={geolocationState === GeolocationState.DOT_ON} > - {geolocation?.heading && } + {geolocation?.heading !== null && ( + + )} ) }