fix: align public export displays
CI / Verify (push) Successful in 58s
CI / Build immutable images and deploy (push) Successful in 1m48s

This commit is contained in:
2026-09-01 14:57:05 +07:00 Unverified
parent 1b4581b94e
commit 9553acccd5
3 changed files with 19 additions and 18 deletions
@@ -27,7 +27,9 @@ const anuphanFonts = Promise.all(
).catch(() => []);
function metric(value: string): string {
return `${Number(value).toLocaleString("en-US", { maximumFractionDigits: 2 })}%`;
return Number(value) === 0
? "-%"
: `${Number(value).toLocaleString("en-US", { maximumFractionDigits: 2 })}%`;
}
async function pngDataUrl(url: string): Promise<string | null> {