Skip to content

Commit f8c0913

Browse files
committed
FIX: color of negative balance on macOS
1 parent bbf6486 commit f8c0913

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

launcher/src/components/UI/the-control/TheBalance.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="title">{{ $t("balWid.fin") }} EPOCH</div>
1010
</div>
1111
<div class="balance-box">
12-
<div class="balance-value" :style="{ color: balance < 0 ? '#EC590A' : '#74fa65' }">{{ balance }} GWei</div>
12+
<div class="balance-value" :style="{ color: balance < 0 ? '#EC590A' : '#74fa65' }">{{ fmtBalance }} GWei</div>
1313
<div class="title">{{ $t("balWid.bal") }}</div>
1414
</div>
1515
</div>
@@ -29,6 +29,7 @@ export default {
2929
return {
3030
finalized_epoch: "Loading..",
3131
balance: 0,
32+
fmtBalance: 0,
3233
finEPOCH: this.$t("controlPage.finEPOCH"),
3334
};
3435
},
@@ -51,7 +52,8 @@ export default {
5152
newbalancestatus.hasOwnProperty("balance")
5253
) {
5354
this.finalized_epoch = newbalancestatus.finalized_epoch;
54-
this.balance = this.numberFormat(newbalancestatus.balance);
55+
this.balance = newbalancestatus.balance;
56+
this.fmtBalance = this.numberFormat(newbalancestatus.balance);
5557
}
5658
},
5759
},

0 commit comments

Comments
 (0)