Skip to content

Commit

Permalink
ci: fix sizebot
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz committed Jan 20, 2022
1 parent cce59a9 commit 18db086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sizebot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ratio = (base, current) => {
if (current === base) return `✅ ${format(0)}`;

let diff = current - base;
let ratioAmount = (((base - current) / base) * -1).toFixed(2);
let ratioAmount = (((base - current) / base) * -100).toFixed(2);

if (current > base) return `⚠️ +${format(diff)} (+${ratioAmount}%)`;

Expand Down

0 comments on commit 18db086

Please sign in to comment.