From: xangelo Date: Thu, 26 May 2022 17:34:10 +0000 (-0400) Subject: bugfix: costs displaying as red when you have the right amount X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=bcc59b38666e68fe4824d93ad24c8c6c6494765d;p=browser-rts.git bugfix: costs displaying as red when you have the right amount --- 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) {