diff --git a/packages/landing/src/components/map.switcher.tsx b/packages/landing/src/components/map.switcher.tsx index 5f45565d6..f25943247 100644 --- a/packages/landing/src/components/map.switcher.tsx +++ b/packages/landing/src/components/map.switcher.tsx @@ -78,8 +78,8 @@ export class MapSwitcher extends Component { this.map.setZoom(Math.max(location.zoom - 4, 0)); this.map.setCenter([location.lon, location.lat]); - if (Config.map.location.bearing != null) this.map.setBearing(Config.map.location.bearing); - if (Config.map.location.pitch != null) this.map.setPitch(Config.map.location.pitch); + this.map.setBearing(Config.map.location.bearing ?? 0); + this.map.setPitch(Config.map.location.pitch ?? 0); this.forceUpdate(); };