Fix country and currency selection
This commit is contained in:
@@ -166,15 +166,15 @@ const fetch = async () => {
|
||||
};
|
||||
|
||||
function selectCurrency(item, id) {
|
||||
|
||||
if (typeof countryCurrency.value[settingsStore.country.country] !== 'undefined') {
|
||||
settingsStore.currency = countryCurrency.value[settingsStore.country.country];
|
||||
if (typeof countryCurrency.value[settingsStore.country.name] !== 'undefined') {
|
||||
settingsStore.currency = countryCurrency.value[settingsStore.country.name];
|
||||
} else {
|
||||
settingsStore.currency = "EUR";
|
||||
}
|
||||
|
||||
if (settingsStore.currency != "EUR")
|
||||
if (settingsStore.currency != "EUR") {
|
||||
settingsStore.currencyCoef = currencyHash.value[settingsStore.currency];
|
||||
}
|
||||
else settingsStore.currencyCoef = 1.0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user