瀏覽代碼

[FIX] cart item zeros

Gogs 7 年之前
父節點
當前提交
272e267c6b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      CartItem.vue

+ 2 - 2
CartItem.vue

@@ -3,9 +3,9 @@
         h3.item-name {{ item.displayName }}
         input.item-quantity(type='number' min='1' :value='item.quantity')
         span.item-x x
-        span.item-price {{ (item.price || 1) | currency(...options) }}
+        span.item-price {{ item.price | currency(...options) }}
         span.item-equals =
-        span.item-subtotal {{ ((item.price || 1) * (item.quantity || 1)) | currency(...options) }}
+        span.item-subtotal {{ (item.price * (item.quantity || 1)) | currency(...options) }}
         .cart-item-options-wrapper
             .cart-item-options
                 .cart-item-option(class='fa fa-plus' @click='onClickIncrement')