forked from Kieran/zap.stream
fix: use replaceable note store
This commit is contained in:
parent
cdc0204eb1
commit
a91399a39a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user