Dashboard: Fix Lightning balance display for tiny amounts (#6573)

Fixes #6541.
This commit is contained in:
d11n 2025-01-21 15:51:31 +01:00 committed by GitHub
parent 20e8db7307
commit 499ddbde65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,8 +35,7 @@ if (!window.storeLightningBalance) {
const currency = rate ? defaultCurrency : cryptoCode;
document.querySelectorAll(`#${id} .currency`).forEach(c => c.innerText = currency)
document.querySelectorAll(`#${id} [data-balance]`).forEach(c => {
const value = Number.parseFloat(c.dataset.balance);
c.innerText = valueTransform(value)
c.innerText = valueTransform(c.dataset.balance)
});
if (!series) return;