aggiornamento product
This commit is contained in:
@@ -39,8 +39,8 @@ export default defineComponent({
|
||||
})
|
||||
|
||||
const numOrders = computed(() => {
|
||||
if (!!products.cart) {
|
||||
return products.cart.items!.length
|
||||
if (!!products.cart && products.cart.items) {
|
||||
return products.cart.items.length
|
||||
} else {
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user