This commit is contained in:
Alex Gleason 2024-05-10 22:17:44 +00:00
parent 323e425e8b
commit c017770760
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ async function renderAdminReport(reportEvent: DittoEvent, opts: RenderAdminRepor
}
}
const reportedPubkey = reportEvent.tags.find(([name]) => name === 'p')![1];
const reportedPubkey = reportEvent.tags.find(([name]) => name === 'p')?.[1];
if (!reportedPubkey) {
return;
}