fix: an address holding only unpriced tokens is no longer totalled at $0.00 (closes #261)
Some checks failed
check / check (push) Has been cancelled

This commit was merged in pull request #298.
This commit is contained in:
2026-08-17 08:38:10 +02:00
parent d9d50f05d2
commit e07efb710a
10 changed files with 370 additions and 64 deletions

View File

@@ -13,7 +13,7 @@ const {
pushCurrentView,
} = require("./helpers");
const { state, currentAddress, saveState } = require("../../shared/state");
const { formatUsd, getAddressValueUsd } = require("../../shared/prices");
const { formatAddressTotal, getAddressValue } = require("../../shared/prices");
const {
fetchRecentTransactions,
filterTransactions,
@@ -64,7 +64,7 @@ function show() {
});
$("address-line").dataset.full = addr.address;
attachCopyHandlers($("address-line"));
const usdTotal = formatUsd(getAddressValueUsd(addr));
const usdTotal = formatAddressTotal(getAddressValue(addr));
$("address-usd-total").innerHTML = usdTotal || " ";
const ensEl = $("address-ens");
// ENS is now shown inside renderAddressHtml, hide the separate element