Fix currency
This commit is contained in:
@@ -193,16 +193,16 @@ watch(ccodes, (codes) => {
|
||||
console.log("IP=", geoip.value);
|
||||
|
||||
let fonud = false;
|
||||
scountry_list.value.forEach((c) => {
|
||||
settingsStore.ccountry_list.forEach((c) => {
|
||||
if (c.code == geoip.value.iso_code) {
|
||||
settingsStore.country = c;
|
||||
found = true;
|
||||
}
|
||||
});
|
||||
if (fonud == false) settingsStore.country = scountry_list.value.filter((c) => {return c.code == 'GB'})[0];
|
||||
if (fonud == false) settingsStore.country = settingsStore.ccountry_list.filter((c) => {return c.code == 'GB'})[0];
|
||||
settingsStore.currency = countryCurrency.value[settingsStore.country.name];
|
||||
|
||||
console.log("FC=", settingsStore.country);
|
||||
console.log("FC=", settingsStore.country,settingsStore.currency);
|
||||
});
|
||||
|
||||
onMounted(fetch);
|
||||
|
||||
Reference in New Issue
Block a user