Fix: don't crash if no home location is set and the hotkey is triggered

This commit is contained in:
Pieter Vander Vennet 2025-04-23 21:20:51 +02:00
parent c1288f0ed2
commit 991925ba35

View file

@ -234,6 +234,7 @@ export class UserMapFeatureswitchState extends WithUserRelatedState {
const home = this.userRelatedState.osmConnection.userDetails.data?.home
if (!home) {
console.log("No home location set")
return
}
this.mapProperties.location.set(home)
}