fix: exchange rate was not shown on wallet page when switching wallets (#3634)
This commit is contained in:
parent
e5e589fc40
commit
62047ea758
3 changed files with 4 additions and 7 deletions
2
lnbits/static/bundle-components.min.js
vendored
2
lnbits/static/bundle-components.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -49,7 +49,6 @@ window.PageWallet = {
|
||||||
hasNfc: false,
|
hasNfc: false,
|
||||||
nfcReaderAbortController: null,
|
nfcReaderAbortController: null,
|
||||||
formattedFiatAmount: 0,
|
formattedFiatAmount: 0,
|
||||||
formattedExchange: null,
|
|
||||||
paymentFilter: {
|
paymentFilter: {
|
||||||
'status[ne]': 'failed'
|
'status[ne]': 'failed'
|
||||||
},
|
},
|
||||||
|
|
@ -658,10 +657,6 @@ window.PageWallet = {
|
||||||
if (this.g.fiatTracking && this.g.wallet.currency) {
|
if (this.g.fiatTracking && this.g.wallet.currency) {
|
||||||
this.g.fiatBalance =
|
this.g.fiatBalance =
|
||||||
(this.g.exchangeRate / 100000000) * this.g.wallet.sat
|
(this.g.exchangeRate / 100000000) * this.g.wallet.sat
|
||||||
this.formattedExchange = LNbits.utils.formatCurrency(
|
|
||||||
this.g.exchangeRate,
|
|
||||||
this.g.wallet.currency
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,9 @@
|
||||||
<div class="text-bold text-italic">BTC Price</div>
|
<div class="text-bold text-italic">BTC Price</div>
|
||||||
<span
|
<span
|
||||||
class="text-bold text-italic"
|
class="text-bold text-italic"
|
||||||
v-text="formattedExchange"
|
v-text="
|
||||||
|
utils.formatCurrency(g.exchangeRate, g.wallet.currency)
|
||||||
|
"
|
||||||
></span>
|
></span>
|
||||||
</div>
|
</div>
|
||||||
<q-btn
|
<q-btn
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue