From 8a4c92930dbca23713b9e54b7e2f98058ef312f5 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Thu, 2 Oct 2025 15:20:34 +0200 Subject: [PATCH] refactor(debug): remove console logs from submissions data table - Clean up debug console.log statements from getDisplayName function - Remove logging for submission data, user data, and fallback values - Improve code cleanliness and production readiness - Maintain functionality while reducing console noise --- web/src/components/submissions-data-table.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/web/src/components/submissions-data-table.tsx b/web/src/components/submissions-data-table.tsx index f6a5b913..834dbfd7 100644 --- a/web/src/components/submissions-data-table.tsx +++ b/web/src/components/submissions-data-table.tsx @@ -30,28 +30,20 @@ dayjs.extend(relativeTime) // Utility function to get display name with priority: username > email > created_by field const getDisplayName = (submission: Submission, expandedData?: any): string => { - console.log("🏷️ Getting display name for submission:", submission.id) - console.log("👤 created_by field:", submission.created_by) - console.log("🔗 expanded data:", expandedData) - // Check if we have expanded user data if (expandedData && expandedData.created_by) { const user = expandedData.created_by - console.log("📋 User data from expand:", user) // Priority: username > email if (user.username) { - console.log("✅ Using username:", user.username) return user.username } if (user.email) { - console.log("✅ Using email:", user.email) return user.email } } // Fallback to created_by field (could be user ID or username) - console.log("⚠️ Fallback to created_by field:", submission.created_by) return submission.created_by }