fix: wallet balance format (#2985)

This commit is contained in:
Arc
2025-02-23 01:09:28 +00:00
committed by GitHub
parent 4511891297
commit 2af5ac9678
2 changed files with 12 additions and 3 deletions
+7
View File
@@ -844,6 +844,13 @@ window.WalletPageLogic = {
this.g.fiatTracking = false
}
},
walletFormatBalance(amount) {
if (LNBITS_DENOMINATION != 'sats') {
return LNbits.utils.formatCurrency(amount / 100, LNBITS_DENOMINATION)
} else {
return LNbits.utils.formatSat(amount) + ' sats'
}
},
handleFilterChange(value = {}) {
if (
this.paymentsFilter['time[ge]'] !== value['time[ge]'] ||