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
1 changed files with 2 additions and 5 deletions
|
|
@ -818,10 +818,8 @@ new Vue({
|
|||
}
|
||||
},
|
||||
watch: {
|
||||
payments: function (_, oldVal) {
|
||||
if (oldVal && oldVal.length !== 0) {
|
||||
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…
Add table
Add a link
Reference in a new issue