fix EUR currency

This commit is contained in:
2024-04-01 20:09:48 +02:00
parent 556dc38aa9
commit 6e1807d678

View File

@@ -200,7 +200,11 @@ watch(ccodes, (codes) => {
}
});
if (found == false) settingsStore.country = settingsStore.ccountry_list.filter((c) => {return c.code == 'GB'})[0];
if (typeof countryCurrency.value[settingsStore.country.name] !== 'undefined') {
settingsStore.currency = countryCurrency.value[settingsStore.country.name];
} else {
settingsStore.currency = "EUR";
}
console.log("FC=", settingsStore.country,settingsStore.currency);
});