X-Git-Url: https://git.xangelo.ca/?a=blobdiff_plain;f=src%2Frender%2Fcosts.ts;h=4f9617b6084c734da545f22b4d2cbce7d7b08937;hb=23651f2cfe342a32503dec70f56f8ffaf03f2616;hp=b0988af88c1a6ce7caebb383371d7ad29d05ec7f;hpb=4289d1894c6e7c92c6ef546c8e3b4f1af1422453;p=browser-rts.git 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) {