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:
parent
d7bbb19571
commit
0b435e911a
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue