fix: increase precision of fiat conversion result

Extended the decimal precision of the converted XMR value from 8 to 12 places. This ensures more accurate representation of conversion rates, especially critical for high-precision financial calculations.
This commit is contained in:
Kumi 2024-08-09 08:33:06 +02:00
parent acb18fd17e
commit 04cadac205
No known key found for this signature in database
GPG Key ID: ECBCC9082395383F

View File

@ -119,7 +119,7 @@ function fiatConvert(value) {
if (exchangeRates[selectBox]) {
let value = fiatAmount / exchangeRates[selectBox];
xmrValue.value = value.toFixed(8);
xmrValue.value = value.toFixed(12);
}
}