Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Don't include the accuracy parameter in location events if accuracy could not be determined. #7375

Merged
merged 3 commits into from
Dec 15, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/components/views/location/LocationPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,10 @@ class LocationPicker extends React.Component<IProps, IState> {
private getGeoUri = (position) => {
return (`geo:${ position.coords.latitude },` +
position.coords.longitude +
( position.coords.altitude != null ?
( position.coords.altitude !== undefined ?
`,${ position.coords.altitude }` : '' ) +
`;u=${ position.coords.accuracy }`);
( position.coords.accuracy !== undefined ?
`;u=${ position.coords.accuracy }` : '' );
};

private onOk = () => {
Expand Down