mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Dashboard: Fix Lightning balance display for tiny amounts (#6573)
Fixes #6541.
This commit is contained in:
parent
20e8db7307
commit
499ddbde65
1 changed files with 1 additions and 2 deletions
|
@ -35,8 +35,7 @@ if (!window.storeLightningBalance) {
|
||||||
const currency = rate ? defaultCurrency : cryptoCode;
|
const currency = rate ? defaultCurrency : cryptoCode;
|
||||||
document.querySelectorAll(`#${id} .currency`).forEach(c => c.innerText = currency)
|
document.querySelectorAll(`#${id} .currency`).forEach(c => c.innerText = currency)
|
||||||
document.querySelectorAll(`#${id} [data-balance]`).forEach(c => {
|
document.querySelectorAll(`#${id} [data-balance]`).forEach(c => {
|
||||||
const value = Number.parseFloat(c.dataset.balance);
|
c.innerText = valueTransform(c.dataset.balance)
|
||||||
c.innerText = valueTransform(value)
|
|
||||||
});
|
});
|
||||||
if (!series) return;
|
if (!series) return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue