bugfix: costs displaying as red when you have the right amount
[browser-rts.git] / src / render / costs.ts
index b0988af88c1a6ce7caebb383371d7ad29d05ec7f..4f9617b6084c734da545f22b4d2cbce7d7b08937 100644 (file)
@@ -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) {