EditIdentity: only pull current user's pubkey

This commit is contained in:
Alex Gleason 2024-03-27 09:53:45 -05:00
parent c02f23c322
commit 37816b0a8c
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 3 additions and 2 deletions

View File

@ -29,11 +29,12 @@ const EditIdentity: React.FC<IEditIdentity> = () => {
const { relay, signer } = useNostr(); const { relay, signer } = useNostr();
const admin = instance.nostr?.pubkey; const admin = instance.nostr?.pubkey;
const pubkey = account?.nostr?.pubkey;
const [username, setUsername] = useState<string>(''); const [username, setUsername] = useState<string>('');
const { events: labels } = useNostrReq( const { events: labels } = useNostrReq(
admin (admin && pubkey)
? [{ kinds: [1985], authors: [admin], '#L': ['nip05'] }] ? [{ kinds: [1985], authors: [admin], '#L': ['nip05'], '#p': [pubkey] }]
: [], : [],
); );