fix: Remove photo URL TextField completely and add debug logging
- Completely removed TextField from PhotoUpload component (not just hidden) - Added console logging to AppShell to debug user photo updates - Rebuilt frontend to ensure changes are deployed The TextField was showing base64 strings even with display:none due to Next.js caching. Complete removal ensures clean UI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -37,6 +37,15 @@ export const AppShell = ({ children }: AppShellProps) => {
|
||||
const { isConnected, presence } = useWebSocket();
|
||||
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
|
||||
|
||||
// Debug: Log user photo changes
|
||||
React.useEffect(() => {
|
||||
console.log('👤 User updated in AppShell:', {
|
||||
name: user?.name,
|
||||
hasPhoto: !!user?.photoUrl,
|
||||
photoPreview: user?.photoUrl?.substring(0, 50)
|
||||
});
|
||||
}, [user?.photoUrl]);
|
||||
|
||||
const handleMenuOpen = (event: React.MouseEvent<HTMLElement>) => {
|
||||
setAnchorEl(event.currentTarget);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user