Fix country and currency selection
This commit is contained in:
@@ -140,5 +140,6 @@
|
||||
"doc": "Doc",
|
||||
"firefox 125": "Firefox 125",
|
||||
"logs": "Logs",
|
||||
"typeerror: $matomo.trackevent is not a function": "TypeError: $matomo.trackEvent is not a function"
|
||||
"typeerror: $matomo.trackevent is not a function": "TypeError: $matomo.trackEvent is not a function",
|
||||
"referenceerror: $matomo is not defined": "ReferenceError: $matomo is not defined"
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -408,7 +408,7 @@ const showRow = async (item) => {
|
||||
country: settingsStore.country.code,
|
||||
});
|
||||
|
||||
console.log('MATOMO',$matomo);
|
||||
//console.log('MATOMO',$matomo);
|
||||
products.value = response.data.products;
|
||||
countryHash.value = response.data.countryHash;
|
||||
console.log("TEST=", response.data);
|
||||
|
||||
Reference in New Issue
Block a user