mirror of
https://github.com/rottenwheel/moner.ooo.git
synced 2024-12-22 16:17:46 +00:00
fix: standardize decimal places for cryptocurrency conversion
Unified the decimal places to 8 for all cryptocurrency conversions in fiatConvert function. This simplifies the logic and ensures consistent precision across all supported cryptocurrencies.
This commit is contained in:
parent
a1ccf0b43b
commit
acb18fd17e
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ function fiatConvert(value) {
|
||||||
|
|
||||||
if (exchangeRates[selectBox]) {
|
if (exchangeRates[selectBox]) {
|
||||||
let value = fiatAmount / exchangeRates[selectBox];
|
let value = fiatAmount / exchangeRates[selectBox];
|
||||||
xmrValue.value = value.toFixed(selectBox == 'BTC' || selectBox == 'LTC' || selectBox == 'ETH' || selectBox == 'XAG' || selectBox == 'XAU' ? 8 : 2);
|
xmrValue.value = value.toFixed(8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue