fix: use replaceable note store
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
import { useMemo } from "react";
|
import { useMemo } from "react";
|
||||||
import {
|
import {
|
||||||
RequestBuilder,
|
RequestBuilder,
|
||||||
NoteCollection,
|
ReplaceableNoteStore,
|
||||||
NostrEvent,
|
NostrEvent,
|
||||||
EventKind,
|
EventKind,
|
||||||
NostrLink,
|
NostrLink,
|
||||||
@ -22,11 +22,11 @@ export function useZapGoal(host: string, link: NostrLink, leaveOpen = false) {
|
|||||||
return b;
|
return b;
|
||||||
}, [link, leaveOpen]);
|
}, [link, leaveOpen]);
|
||||||
|
|
||||||
const { data } = useRequestBuilder<NoteCollection>(
|
const { data } = useRequestBuilder<ReplaceableNoteStore>(
|
||||||
System,
|
System,
|
||||||
NoteCollection,
|
ReplaceableNoteStore,
|
||||||
sub
|
sub
|
||||||
);
|
);
|
||||||
|
|
||||||
return data?.at(0);
|
return data;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user