diff --git a/src/content/github/pr/main.tsx b/src/content/github/pr/main.tsx index 2eaedb8..1ab4c04 100644 --- a/src/content/github/pr/main.tsx +++ b/src/content/github/pr/main.tsx @@ -48,10 +48,10 @@ async function execute() { const coverageReport = await getPRReport(urlMetadata); if ( - !coverageReport.files || - !coverageReport.totals.base.coverage || - !coverageReport.totals.head.coverage || - !coverageReport.totals.patch.coverage + !coverageReport?.files || + !coverageReport?.totals?.base?.coverage || + !coverageReport?.totals?.head?.coverage || + !coverageReport?.totals?.patch?.coverage ) { showError(); return;