fix: exchange rate was not shown on wallet page when switching wallets (#3634)
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -49,7 +49,6 @@ window.PageWallet = {
|
||||
hasNfc: false,
|
||||
nfcReaderAbortController: null,
|
||||
formattedFiatAmount: 0,
|
||||
formattedExchange: null,
|
||||
paymentFilter: {
|
||||
'status[ne]': 'failed'
|
||||
},
|
||||
@@ -658,10 +657,6 @@ window.PageWallet = {
|
||||
if (this.g.fiatTracking && this.g.wallet.currency) {
|
||||
this.g.fiatBalance =
|
||||
(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>
|
||||
<span
|
||||
class="text-bold text-italic"
|
||||
v-text="formattedExchange"
|
||||
v-text="
|
||||
utils.formatCurrency(g.exchangeRate, g.wallet.currency)
|
||||
"
|
||||
></span>
|
||||
</div>
|
||||
<q-btn
|
||||
|
||||
Reference in New Issue
Block a user