fix: config

This commit is contained in:
2024-01-22 17:21:46 +00:00
parent e9cf2e141b
commit d6c578fafc
2 changed files with 9 additions and 3 deletions

View File

@ -7,10 +7,12 @@ import { LeadersStore } from "@/Cache/CommunityLeadersStore";
import { useLinkList } from "./useLists";
export function useCommunityLeaders() {
const link = parseNostrLink(unwrap(CONFIG.communityLeaders).list);
const link = CONFIG.communityLeaders ? parseNostrLink(unwrap(CONFIG.communityLeaders).list) : undefined;
const list = useLinkList("leaders", rb => {
rb.withFilter().kinds([EventKind.FollowSet]).link(link);
if (link) {
rb.withFilter().kinds([EventKind.FollowSet]).link(link);
}
});
useEffect(() => {