Skip to content

Commit

Permalink
fix(#12): change indicator color based on positive/negative values
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeBijl committed May 27, 2024
1 parent 1137328 commit 454368d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extension/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ class AES {

if (value >= 0) {
valueEl.classList.add("good")
indicatorEl.classList.add("good")
indicatorEl.innerText = "+"
}

if (value < 0) {
valueEl.classList.add("bad")
indicatorEl.classList.add("bad")
indicatorEl.innerText = "-"
formattedValue = formattedValue.replace("-", "")
}
Expand Down

0 comments on commit 454368d

Please sign in to comment.