修改额度汇率的展现形式

This commit is contained in:
quzard 2023-06-20 20:59:50 +08:00
parent 12f6d8d367
commit 7f6f3e66da

View File

@ -43,7 +43,7 @@ export function renderQuota(quota, digits = 2) {
quotaPerUnit = parseFloat(quotaPerUnit);
displayInCurrency = displayInCurrency === 'true';
if (displayInCurrency) {
return '$' + (quota / quotaPerUnit).toFixed(digits);
return '$' + (quota / 1000 * quotaPerUnit).toFixed(digits);
}
return renderNumber(quota);
}