fix: use replaceable note store

This commit is contained in:
Alejandro Gomez
2023-07-07 08:35:36 +02:00
parent cdc0204eb1
commit a91399a39a

View File

@ -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;
} }