fix: use right store

This commit is contained in:
Alejandro Gomez 2023-07-01 19:15:51 +02:00
parent 8aff5aaf3a
commit 49683c8cbd
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -2,6 +2,7 @@ import { useMemo } from "react";
import {
RequestBuilder,
FlatNoteStore,
ParameterizedReplaceableNoteStore,
NostrLink,
EventKind,
parseZap,
@ -23,11 +24,12 @@ export function useProfile(link: NostrLink, leaveOpen = false) {
return b;
}, [link, leaveOpen]);
const { data: streamsData } = useRequestBuilder<FlatNoteStore>(
System,
FlatNoteStore,
sub
);
const { data: streamsData } =
useRequestBuilder<ParameterizedReplaceableNoteStore>(
System,
ParameterizedReplaceableNoteStore,
sub
);
const streams = streamsData ?? [];
const addresses = useMemo(() => {