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