Show $0.00 instead of < $0.01 for zero balances
All checks were successful
check / check (push) Successful in 13s
All checks were successful
check / check (push) Successful in 13s
This commit is contained in:
@@ -138,6 +138,7 @@ async function refreshPrices() {
|
||||
|
||||
function formatUsd(amount) {
|
||||
if (amount === null || amount === undefined || isNaN(amount)) return "";
|
||||
if (amount === 0) return "$0.00";
|
||||
if (amount < 0.01) return "< $0.01";
|
||||
return (
|
||||
"$" +
|
||||
|
||||
Reference in New Issue
Block a user