mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-04-10 04:39:19 +02:00
pick lud16 over lud06
This commit is contained in:
parent
4f4bc474bd
commit
40ad9e9d28
@ -4,7 +4,7 @@ import lnurlMetadataService from "../services/lnurl-metadata";
|
||||
|
||||
export default function useUserLNURLMetadata(pubkey: string) {
|
||||
const userMetadata = useUserMetadata(pubkey);
|
||||
const address = userMetadata?.lud06 || userMetadata?.lud16;
|
||||
const address = userMetadata?.lud16 || userMetadata?.lud06;
|
||||
const { value: metadata } = useAsync(
|
||||
async () => (address ? lnurlMetadataService.requestMetadata(address) : undefined),
|
||||
[address]
|
||||
|
Loading…
x
Reference in New Issue
Block a user