diff --git a/dist/main.js b/dist/main.js index c738785b..a1cd21b6 100644 --- a/dist/main.js +++ b/dist/main.js @@ -6040,7 +6040,7 @@ function commentForMonorepo( el => el.packageName === lcovObj.packageName, ); - const pbefore = baseLcov ? percentage(baseLcov) : 0; + const pbefore = baseLcov ? percentage(baseLcov.lcov) : 0; const pafter = baseLcov ? percentage(lcovObj.lcov) : 0; const pdiff = pafter - pbefore; const plus = pdiff > 0 ? "+" : ""; diff --git a/src/comment.js b/src/comment.js index 8a43ce72..96ed1da0 100644 --- a/src/comment.js +++ b/src/comment.js @@ -18,7 +18,7 @@ export function commentForMonorepo( el => el.packageName === lcovObj.packageName, ); - const pbefore = baseLcov ? percentage(baseLcov) : 0; + const pbefore = baseLcov ? percentage(baseLcov.lcov) : 0; const pafter = baseLcov ? percentage(lcovObj.lcov) : 0; const pdiff = pafter - pbefore; const plus = pdiff > 0 ? "+" : "";