mirror of
https://github.com/rottenwheel/moner.ooo.git
synced 2024-11-09 20:53:46 +01: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
@ -119,7 +119,7 @@ function fiatConvert(value) {
|
||||
|
||||
if (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 New Issue
Block a user