mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 15:08:24 +00:00
Don't include the accuracy parameter in location events if accuracy could not be determined. (#7375)
* Don't include accuracy on geouri if not defined * Use !== undefined * Add a )
This commit is contained in:
@@ -188,9 +188,10 @@ class LocationPicker extends React.Component<IProps, IState> {
|
|||||||
private getGeoUri = (position) => {
|
private getGeoUri = (position) => {
|
||||||
return (`geo:${ position.coords.latitude },` +
|
return (`geo:${ position.coords.latitude },` +
|
||||||
position.coords.longitude +
|
position.coords.longitude +
|
||||||
( position.coords.altitude != null ?
|
( position.coords.altitude !== undefined ?
|
||||||
`,${ position.coords.altitude }` : '' ) +
|
`,${ position.coords.altitude }` : '' ) +
|
||||||
`;u=${ position.coords.accuracy }`);
|
( position.coords.accuracy !== undefined ?
|
||||||
|
`;u=${ position.coords.accuracy }` : '' ));
|
||||||
};
|
};
|
||||||
|
|
||||||
private onOk = () => {
|
private onOk = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user