Procházet zdrojové kódy

[FIX] cart item zeros

Gogs před 7 roky
rodič
revize
272e267c6b
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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')