Skip to content

Commit

Permalink
0 is an unlikely but valid heading value representing true north
Browse files Browse the repository at this point in the history
  • Loading branch information
wbazant committed Nov 27, 2024
1 parent 81fbbe1 commit 5491345
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/map/GeolocationDot.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ const GeolocationDot = () => {
isClickable={geolocationState === GeolocationState.DOT_ON}
>
<Pin />
{geolocation?.heading && <Heading heading={geolocation.heading} />}
{geolocation?.heading !== null && (
<Heading heading={geolocation.heading} />
)}
</GeolocationWrapper>
)
}
Expand Down

0 comments on commit 5491345

Please sign in to comment.