From 33f81279a6d6d786f31b9d71a2215d4adf289dc0 Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Sat, 12 Oct 2024 17:37:26 -0500 Subject: [PATCH] Fetch author explicityly --- src/pages/details/[slug]/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pages/details/[slug]/index.js b/src/pages/details/[slug]/index.js index 540617a..f73aadb 100644 --- a/src/pages/details/[slug]/index.js +++ b/src/pages/details/[slug]/index.js @@ -47,6 +47,12 @@ const Details = () => { } }, [event, nAddress]); + useEffect(() => { + if (!author && event?.pubkey) { + fetchAuthor(event?.pubkey); + } + }, [author, event, fetchAuthor]); + useEffect(() => { const fetchAndProcessEvent = async () => { if (!router.isReady || !router.query.slug) return;