Remove debug console logs

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 15:51:53 +00:00
parent 5e789c7b4b
commit d78356e673
26 changed files with 37 additions and 156 deletions

View File

@@ -11,8 +11,6 @@ export function useProfile(userId: string | undefined) {
queryFn: async () => {
if (!userId) return null;
console.log('[useProfile] Fetching filtered profile for userId:', userId);
// Get current viewer ID
const { data: { user } } = await supabase.auth.getUser();
const viewerId = user?.id || null;
@@ -24,7 +22,6 @@ export function useProfile(userId: string | undefined) {
});
if (error) {
console.error('[useProfile] Error:', error);
throw error;
}
@@ -46,11 +43,6 @@ export function useProfile(userId: string | undefined) {
}
}
console.log('[useProfile] Filtered profile loaded:', {
username: profileData.username,
has_avatar: !!profileData.avatar_url
});
return profileData;
},
enabled: !!userId,
@@ -61,7 +53,6 @@ export function useProfile(userId: string | undefined) {
const refreshProfile = () => {
if (userId) {
console.log('[useProfile] Invalidating profile cache for userId:', userId);
queryClient.invalidateQueries({ queryKey: ['profile', userId] });
}
};