console.logs entfernt
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@ export const handleTrackSubscribed = (
|
||||
publication: RemoteTrackPublication,
|
||||
participant: RemoteParticipant,
|
||||
) => {
|
||||
console.log("Track subscribed:", track, publication, participant);
|
||||
if (!track.isMuted) {
|
||||
useAudioStore.getState().addSpeakingParticipant(participant);
|
||||
}
|
||||
|
||||
@@ -53,7 +53,6 @@ export const kickAircraftAPI = async ({
|
||||
const res = await serverApi.delete(`/aircrafts/${id}`, {
|
||||
data: { bann, reason, until },
|
||||
});
|
||||
console.log(res.status);
|
||||
if (res.status != 204) {
|
||||
throw new Error("Failed to kick aircraft");
|
||||
}
|
||||
|
||||
@@ -39,7 +39,6 @@ export const kickDispatcherAPI = async ({
|
||||
const res = await serverApi.delete(`/dispatcher/${id}`, {
|
||||
data: { bann, reason, until },
|
||||
});
|
||||
console.log(res.status);
|
||||
if (res.status != 204) {
|
||||
throw new Error("Failed to kick aircraft");
|
||||
}
|
||||
|
||||
@@ -68,7 +68,6 @@ dispatchSocket.on("disconnect", () => {
|
||||
});
|
||||
|
||||
dispatchSocket.on("force-disconnect", (reason: string) => {
|
||||
console.log("force-disconnect", reason);
|
||||
useDispatchConnectionStore.setState({
|
||||
status: "disconnected",
|
||||
message: reason,
|
||||
|
||||
@@ -97,7 +97,6 @@ pilotSocket.on("disconnect", () => {
|
||||
});
|
||||
|
||||
pilotSocket.on("force-disconnect", (reason: string) => {
|
||||
console.log("force-disconnect", reason);
|
||||
usePilotConnectionStore.setState({
|
||||
status: "disconnected",
|
||||
message: reason,
|
||||
|
||||
Reference in New Issue
Block a user