mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 06:11:13 -05:00
Remove debug console logs
This commit is contained in:
@@ -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] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user