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