fix: exchange rate was not shown on wallet page when switching wallets (#3634)

This commit is contained in:
dni ⚡ 2025-12-06 14:12:09 +01:00 committed by GitHub
parent e5e589fc40
commit 62047ea758
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 7 deletions

File diff suppressed because one or more lines are too long

View file

@ -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
)
} }
} }
} }

View file

@ -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