From bcc59b38666e68fe4824d93ad24c8c6c6494765d Mon Sep 17 00:00:00 2001 From: xangelo Date: Thu, 26 May 2022 13:34:10 -0400 Subject: [PATCH] bugfix: costs displaying as red when you have the right amount --- src/render/costs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/costs.ts b/src/render/costs.ts index b0988af..4f9617b 100644 --- a/src/render/costs.ts +++ b/src/render/costs.ts @@ -16,7 +16,7 @@ type Cost = { function lineItem(display: string, value: number, available: number): string { let className = ''; - if(available <= value && available >= 0) { + if(available < value && available >= 0) { className = 'danger-text'; } else if(available >= value) { -- 2.25.1