fix name of country
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 10s

This commit is contained in:
2023-12-26 16:03:10 +01:00
parent 82c9971289
commit e55e88fa62
3 changed files with 19 additions and 3 deletions

View File

@@ -23,12 +23,17 @@ const props = defineProps({
type: Object,
default: []
},
countryHash: {
type: Object,
default: []
},
})
console.log(props.countryHash);
let tproducts = computed(() => {
return props.products.map((prod) => {
prod.salesPrice = parseFloat(prod.salesPrice);
prod.country = props.countryHash[prod.country];
return prod;
} )
})