mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-10 15:36:53 +02:00
fix: use resolvedPubkey instead of original pubkey in ProfileViewer child components
- UserName and Nip05 components now receive resolvedPubkey instead of pubkey - Fixes PROFILE $me windows not updating when account changes - Now properly reactive to account switches - Matches REQ window behavior for $me alias resolution
This commit is contained in:
@@ -292,13 +292,13 @@ export function ProfileViewer({ pubkey }: ProfileViewerProps) {
|
||||
<div className="flex flex-col gap-0">
|
||||
{/* Display Name */}
|
||||
<UserName
|
||||
pubkey={pubkey}
|
||||
pubkey={resolvedPubkey}
|
||||
className="text-2xl font-bold pointer-events-none"
|
||||
/>
|
||||
{/* NIP-05 */}
|
||||
{profile.nip05 && (
|
||||
<div className="text-xs">
|
||||
<Nip05 pubkey={pubkey} profile={profile} />
|
||||
<Nip05 pubkey={resolvedPubkey} profile={profile} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user