Removed some console.logs

This commit is contained in:
Arunavo Ray
2025-07-07 23:12:26 +05:30
parent fd8f782f34
commit c95a501974
7 changed files with 0 additions and 13 deletions

View File

@@ -57,8 +57,6 @@ export function Dashboard() {
}
setActivities((prevActivities) => [data, ...prevActivities]);
console.log("Received new log:", data);
}, []);
// Use the SSE hook

View File

@@ -18,7 +18,6 @@ export function Sidebar({ className, onNavigate, isOpen, onClose }: SidebarProps
// Hydration happens here
const path = window.location.pathname;
setCurrentPath(path);
console.log("Hydrated path:", path); // Should log now
}, []);
// Listen for URL changes (browser back/forward)

View File

@@ -64,8 +64,6 @@ export function Organization() {
)
);
}
console.log("Received new log:", data);
}, []);
// Use the SSE hook

View File

@@ -81,8 +81,6 @@ export default function Repository() {
)
);
}
console.log("Received new log:", data);
}, []);
// Use the SSE hook

View File

@@ -38,9 +38,6 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
// setIsLoading(true);
try {
const user = await authApi.getCurrentUser();
console.log("User data refreshed:", user);
setUser(user);
} catch (err: any) {
setUser(null);

View File

@@ -64,7 +64,6 @@ export const useSSE = ({
eventSource.onopen = () => {
setConnected(true);
setReconnectCount(0); // Reset reconnect counter on successful connection
console.log(`Connected to SSE for user: ${userId}`);
};
eventSource.onerror = (error) => {

View File

@@ -51,7 +51,6 @@ export function useRepoSync({
const sync = async () => {
try {
console.log("Attempting to sync...");
const response = await fetch("/api/job/schedule-sync-repo", {
method: "POST",
headers: {
@@ -68,7 +67,6 @@ export function useRepoSync({
await refreshUser(); // refresh user data to get latest sync times. this can be taken from the schedule-sync-repo response but might not be reliable in cases of errors
const result = await response.json();
console.log("Sync successful:", result);
return result;
} catch (error) {
console.error("Sync failed:", error);