Home
/
browser-rts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ca3486
)
bugfix: costs displaying as red when you have the right amount
author
xangelo
<git@xangelo.ca>
Thu, 26 May 2022 17:34:10 +0000
(13:34 -0400)
committer
xangelo
<git@xangelo.ca>
Thu, 26 May 2022 17:34:10 +0000
(13:34 -0400)
src/render/costs.ts
patch
|
blob
|
history
diff --git
a/src/render/costs.ts
b/src/render/costs.ts
index b0988af88c1a6ce7caebb383371d7ad29d05ec7f..4f9617b6084c734da545f22b4d2cbce7d7b08937 100644
(file)
--- 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) {