fix: fix d query

This commit is contained in:
Alejandro Gomez 2023-07-03 23:12:09 +02:00
parent 2f38d0bffb
commit 5f34cebc65
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -23,7 +23,7 @@ export default function useEmoji(pubkey: string) {
rb.withFilter() rb.withFilter()
.authors([pubkey]) .authors([pubkey])
.kinds([10030 as EventKind, 30030 as EventKind]); .kinds([10030 as EventKind]);
return rb; return rb;
}, [pubkey]); }, [pubkey]);
@ -59,8 +59,7 @@ export default function useEmoji(pubkey: string) {
rb.withFilter() rb.withFilter()
.kinds([30030 as EventKind]) .kinds([30030 as EventKind])
.authors(authors) .authors(authors)
// @ts-expect-error .tag("d", identifiers);
.tag(["d", identifiers]);
return rb; return rb;
}, [pubkey, related]); }, [pubkey, related]);
@ -71,6 +70,7 @@ export default function useEmoji(pubkey: string) {
ParameterizedReplaceableNoteStore, ParameterizedReplaceableNoteStore,
subRelated subRelated
); );
const emojiPacks = useMemo(() => { const emojiPacks = useMemo(() => {
return relatedData ?? []; return relatedData ?? [];
}, [relatedData]); }, [relatedData]);