Explorar el Código

[FIX] cart total computation

Gogs hace 7 años
padre
commit
ae8224ef91
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Cart.vue

+ 1 - 1
Cart.vue

@@ -43,7 +43,7 @@
                 let sum = 0
 
                 for (let item of this.items) {
-                    sum = sum + ((item.price || 1) * (item.quantity || 1))
+                    sum = sum + ((item.price || 0) * (item.quantity || 0))
                 }
 
                 this.total = sum