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:
Claude
2026-01-05 17:43:47 +00:00
parent 4901fa0fd5
commit 84c91ea340

View File

@@ -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>