From f974760640cab5b8c8d53b31a49ff810a77612e8 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 21 Feb 2023 20:23:15 +0100 Subject: [PATCH] fix: comparsion for lower than 0.01 --- src/comment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comment.ts b/src/comment.ts index 154d8c0..2054561 100644 --- a/src/comment.ts +++ b/src/comment.ts @@ -3,7 +3,7 @@ import { percentage } from "./lcov.js"; import { LvocList } from "./app.js"; const renderEmoji = (pdiff: number) => { - if (pdiff < 0.01) return ":x:"; + if (pdiff < -0.01) return ":x:"; if (pdiff > 0.01) return ":heavy_check_mark:";