diff --git a/src/components/Bookmarks.tsx b/src/components/Bookmarks.tsx index 576b6070..ef2cbfc3 100644 --- a/src/components/Bookmarks.tsx +++ b/src/components/Bookmarks.tsx @@ -75,6 +75,10 @@ const Bookmarks: React.FC = ({ relayPool, onLogout }) => { const formatUserDisplay = () => { if (!activeAccount) return 'Unknown User' + // Debug profile loading + console.log('Profile data:', profile) + console.log('Active account pubkey:', activeAccount.pubkey) + // Use profile data from ProfileModel if available if (profile?.name) { return profile.name @@ -86,6 +90,11 @@ const Bookmarks: React.FC = ({ relayPool, onLogout }) => { return profile.nip05 } + // Show loading state while profile is being fetched + if (profile === undefined) { + return 'Loading profile...' + } + // Fallback to formatted public key return `${activeAccount.pubkey.slice(0, 8)}...${activeAccount.pubkey.slice(-8)}` }