chore(mining-admin-web): change default decimal precision from 8 to 7

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-15 02:37:53 -08:00
parent d7bbb19571
commit 0b435e911a
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ export function formatNumber(value: number | string | undefined | null, decimals
return parts.join('.');
}
export function formatDecimal(value: string | number | undefined | null, precision = 8): string {
export function formatDecimal(value: string | number | undefined | null, precision = 7): string {
if (value === undefined || value === null) return '-';
try {
const decimal = new Decimal(value);