apply strictnullchecks to src/components/views/beacon/* (#10272)
This commit is contained in:
parent
ffa047be68
commit
de6a1a661c
11 changed files with 48 additions and 30 deletions
|
@ -28,9 +28,9 @@ interface Props {
|
|||
}
|
||||
|
||||
const ShareLatestLocation: React.FC<Props> = ({ latestLocationState }) => {
|
||||
const [coords, setCoords] = useState(null);
|
||||
const [coords, setCoords] = useState<GeolocationCoordinates | undefined>();
|
||||
useEffect(() => {
|
||||
if (!latestLocationState) {
|
||||
if (!latestLocationState?.uri) {
|
||||
return;
|
||||
}
|
||||
const coords = parseGeoUri(latestLocationState.uri);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue