Fetch author explicityly

This commit is contained in:
austinkelsay 2024-10-12 17:37:26 -05:00
parent 3746a9fbaa
commit 33f81279a6

View File

@ -47,6 +47,12 @@ const Details = () => {
} }
}, [event, nAddress]); }, [event, nAddress]);
useEffect(() => {
if (!author && event?.pubkey) {
fetchAuthor(event?.pubkey);
}
}, [author, event, fetchAuthor]);
useEffect(() => { useEffect(() => {
const fetchAndProcessEvent = async () => { const fetchAndProcessEvent = async () => {
if (!router.isReady || !router.query.slug) return; if (!router.isReady || !router.query.slug) return;