Skip to content

Commit c95a501

Browse files
committed
Removed some console.logs
1 parent fd8f782 commit c95a501

File tree

7 files changed

+0
-13
lines changed

7 files changed

+0
-13
lines changed

src/components/dashboard/Dashboard.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ export function Dashboard() {
5757
}
5858

5959
setActivities((prevActivities) => [data, ...prevActivities]);
60-
61-
console.log("Received new log:", data);
6260
}, []);
6361

6462
// Use the SSE hook

src/components/layout/Sidebar.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export function Sidebar({ className, onNavigate, isOpen, onClose }: SidebarProps
1818
// Hydration happens here
1919
const path = window.location.pathname;
2020
setCurrentPath(path);
21-
console.log("Hydrated path:", path); // Should log now
2221
}, []);
2322

2423
// Listen for URL changes (browser back/forward)

src/components/organizations/Organization.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ export function Organization() {
6464
)
6565
);
6666
}
67-
68-
console.log("Received new log:", data);
6967
}, []);
7068

7169
// Use the SSE hook

src/components/repositories/Repository.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ export default function Repository() {
8181
)
8282
);
8383
}
84-
85-
console.log("Received new log:", data);
8684
}, []);
8785

8886
// Use the SSE hook

src/hooks/useAuth.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
3838
// setIsLoading(true);
3939
try {
4040
const user = await authApi.getCurrentUser();
41-
42-
console.log("User data refreshed:", user);
43-
4441
setUser(user);
4542
} catch (err: any) {
4643
setUser(null);

src/hooks/useSEE.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export const useSSE = ({
6464
eventSource.onopen = () => {
6565
setConnected(true);
6666
setReconnectCount(0); // Reset reconnect counter on successful connection
67-
console.log(`Connected to SSE for user: ${userId}`);
6867
};
6968

7069
eventSource.onerror = (error) => {

src/hooks/useSyncRepo.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export function useRepoSync({
5151

5252
const sync = async () => {
5353
try {
54-
console.log("Attempting to sync...");
5554
const response = await fetch("/api/job/schedule-sync-repo", {
5655
method: "POST",
5756
headers: {
@@ -68,7 +67,6 @@ export function useRepoSync({
6867
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
6968

7069
const result = await response.json();
71-
console.log("Sync successful:", result);
7270
return result;
7371
} catch (error) {
7472
console.error("Sync failed:", error);

0 commit comments

Comments
 (0)