diff --git a/src/content/github/file/main.tsx b/src/content/github/file/main.tsx index 9d98fa1..e9643b5 100644 --- a/src/content/github/file/main.tsx +++ b/src/content/github/file/main.tsx @@ -67,7 +67,7 @@ async function main(): Promise { return; } globals.coverageButton = createCoverageButton(); - process(urlMetadata); + await process(urlMetadata); } catch (e) { Sentry.captureException(e); throw e; diff --git a/src/content/github/pr/main.tsx b/src/content/github/pr/main.tsx index af19419..1ab4c04 100644 --- a/src/content/github/pr/main.tsx +++ b/src/content/github/pr/main.tsx @@ -47,7 +47,12 @@ async function execute() { createContainer(); const coverageReport = await getPRReport(urlMetadata); - if (!coverageReport.files) { + if ( + !coverageReport?.files || + !coverageReport?.totals?.base?.coverage || + !coverageReport?.totals?.head?.coverage || + !coverageReport?.totals?.patch?.coverage + ) { showError(); return; }