fix: disable follow button if no follow list available

This commit is contained in:
Alejandro Gomez
2023-07-25 16:38:57 +02:00
parent 192f5cb600
commit 9e437c6425
2 changed files with 4 additions and 3 deletions

View File

@ -22,6 +22,5 @@ export default function useFollows(pubkey: string, leaveOpen = false) {
);
const relays = JSON.parse(data?.content ?? "{}");
return { tags: data?.tags ?? [], relays };
return data ? { tags: data.tags, relays } : null
}