fix: use replaceable note store

This commit is contained in:
Alejandro Gomez 2023-07-07 08:35:36 +02:00
parent cdc0204eb1
commit a91399a39a
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -1,7 +1,7 @@
import { useMemo } from "react";
import {
RequestBuilder,
NoteCollection,
ReplaceableNoteStore,
NostrEvent,
EventKind,
NostrLink,
@ -22,11 +22,11 @@ export function useZapGoal(host: string, link: NostrLink, leaveOpen = false) {
return b;
}, [link, leaveOpen]);
const { data } = useRequestBuilder<NoteCollection>(
const { data } = useRequestBuilder<ReplaceableNoteStore>(
System,
NoteCollection,
ReplaceableNoteStore,
sub
);
return data?.at(0);
return data;
}