mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-07 19:38:13 +02:00
hotfix: initial currency conversion on balance (#2346)
* hotfix: initial currency conversion on balance fiat amount not shown in balance on initial pageload, lets reintroduce the first fetch_balance to fix it. maybe in the future balance call and wallet itself should give the current fiat value if the wallet uses fiat tracking
This commit is contained in:
parent
c101b85054
commit
0ef9c4db10
@ -818,10 +818,8 @@ new Vue({
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
payments: function (_, oldVal) {
|
||||
if (oldVal && oldVal.length !== 0) {
|
||||
this.fetchBalance()
|
||||
}
|
||||
payments: function () {
|
||||
this.fetchBalance()
|
||||
},
|
||||
'paymentsChart.group': function () {
|
||||
this.showChart()
|
||||
@ -839,7 +837,6 @@ new Vue({
|
||||
this.mobileSimple = true
|
||||
}
|
||||
this.fetchPayments()
|
||||
this.balance = Math.floor(window.wallet.balance_msat / 1000)
|
||||
|
||||
this.update.name = this.g.wallet.name
|
||||
this.update.currency = this.g.wallet.currency
|
||||
|
Loading…
x
Reference in New Issue
Block a user