Skip to content

Commit

Permalink
FIX: color of negative balance on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
daverolo committed Feb 6, 2024
1 parent bbf6486 commit f8c0913
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions launcher/src/components/UI/the-control/TheBalance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="title">{{ $t("balWid.fin") }} EPOCH</div>
</div>
<div class="balance-box">
<div class="balance-value" :style="{ color: balance < 0 ? '#EC590A' : '#74fa65' }">{{ balance }} GWei</div>
<div class="balance-value" :style="{ color: balance < 0 ? '#EC590A' : '#74fa65' }">{{ fmtBalance }} GWei</div>
<div class="title">{{ $t("balWid.bal") }}</div>
</div>
</div>
Expand All @@ -29,6 +29,7 @@ export default {
return {
finalized_epoch: "Loading..",
balance: 0,
fmtBalance: 0,
finEPOCH: this.$t("controlPage.finEPOCH"),
};
},
Expand All @@ -51,7 +52,8 @@ export default {
newbalancestatus.hasOwnProperty("balance")
) {
this.finalized_epoch = newbalancestatus.finalized_epoch;
this.balance = this.numberFormat(newbalancestatus.balance);
this.balance = newbalancestatus.balance;
this.fmtBalance = this.numberFormat(newbalancestatus.balance);
}
},
},
Expand Down

0 comments on commit f8c0913

Please sign in to comment.