mirror of
https://github.com/dergigi/boris.git
synced 2026-01-08 01:14:37 +01:00
fix(profile): enable reactive profile fetch via address loader lookup relays and improve fallback display\n\n- Configure createAddressLoader with common profile relays (purplepag.es, primal, nostr.band)\n- Avoid sticky 'Loading profile...' label; fallback to short pubkey until profile loads
This commit is contained in:
@@ -90,12 +90,7 @@ const Bookmarks: React.FC<BookmarksProps> = ({ relayPool, onLogout }) => {
|
||||
return profile.nip05
|
||||
}
|
||||
|
||||
// Show loading state while profile is being fetched
|
||||
if (profile === undefined) {
|
||||
return 'Loading profile...'
|
||||
}
|
||||
|
||||
// Fallback to formatted public key
|
||||
// Fallback to formatted public key to avoid sticky loading text
|
||||
return `${activeAccount.pubkey.slice(0, 8)}...${activeAccount.pubkey.slice(-8)}`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user