فهرست منبع

[FIX] cart total computation

Gogs 7 سال پیش
والد
کامیت
ae8224ef91
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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