mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-05-19 00:12:00 +00:00
Fetch author explicityly
This commit is contained in:
parent
3746a9fbaa
commit
33f81279a6
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user