console.logs entfernt

This commit is contained in:
PxlLoewe
2025-06-28 00:37:48 -07:00
parent 0569616bf2
commit 2445d88411
11 changed files with 30 additions and 14 deletions

View File

@@ -57,7 +57,6 @@ export function QueryProvider({ children }: { children: ReactNode }) {
};
const handleNotification = (notification: NotificationPayload) => {
console.log("notification", notification);
switch (notification.type) {
case "hpg-validation":
toast.custom(

View File

@@ -227,7 +227,6 @@ const AircraftMarker = ({ aircraft }: { aircraft: ConnectedAircraft & { Station:
useEffect(() => {
const handleClick = () => {
console.log("Marker clicked", aircraft.id);
const open = openAircraftMarker.some((m) => m.id === aircraft.id);
if (open) {
setOpenAircraftMarker({

View File

@@ -24,14 +24,10 @@ const Map = () => {
}, [map, setMap]);
useEffect(() => {
console.log("Map center or zoom changed");
if (ref.current) {
const center = ref.current?.getCenter();
const zoom = ref.current?.getZoom();
console.log("Map center or zoom changed", center.equals(map.center), zoom === map.zoom);
if (!center.equals(map.center) || zoom !== map.zoom) {
console.log("Updating map center and zoom");
ref.current.setView(map.center, map.zoom);
}
}