diff --git a/frontend/components/global/product-detail/RemainQuantity.vue b/frontend/components/global/product-detail/RemainQuantity.vue index b47a72b..957e966 100644 --- a/frontend/components/global/product-detail/RemainQuantity.vue +++ b/frontend/components/global/product-detail/RemainQuantity.vue @@ -1,16 +1,15 @@ \ No newline at end of file + diff --git a/frontend/components/global/product-detail/UpdateQuantity.vue b/frontend/components/global/product-detail/UpdateQuantity.vue index 6b4102c..b399800 100644 --- a/frontend/components/global/product-detail/UpdateQuantity.vue +++ b/frontend/components/global/product-detail/UpdateQuantity.vue @@ -7,9 +7,7 @@ import type { ProductVariantProvideType } from "~/pages/product/[id].vue"; // provide / inject -const { selectedVariant } = inject( - "productVariant" -) as ProductVariantProvideType; +const { selectedVariant } = inject("productVariant") as ProductVariantProvideType; // state @@ -46,15 +44,14 @@ watch( ); watch(selectedVariant, (newValue) => { - quantity.value = newValue!.cart_quantity; + quantity.value = newValue!.cart_quantity === 0 ? 1 : newValue!.cart_quantity; }); // lifecycle onMounted(() => { - quantity.value = selectedVariant.value!.cart_quantity; + quantity.value = selectedVariant.value!.cart_quantity === 0 ? 1 : selectedVariant.value!.cart_quantity; }); - diff --git a/frontend/components/global/product/StickyCard.vue b/frontend/components/global/product/StickyCard.vue index 61b486c..d2b7f41 100644 --- a/frontend/components/global/product/StickyCard.vue +++ b/frontend/components/global/product/StickyCard.vue @@ -1,5 +1,4 @@ \ No newline at end of file + diff --git a/frontend/components/home/Preview.vue b/frontend/components/home/Preview.vue index 66168b6..bdaa9bf 100644 --- a/frontend/components/home/Preview.vue +++ b/frontend/components/home/Preview.vue @@ -139,7 +139,7 @@ watch( diff --git a/frontend/public/img/heymlz/heymlz-pulling.gif b/frontend/public/img/heymlz/heymlz-pullingg.gif similarity index 100% rename from frontend/public/img/heymlz/heymlz-pulling.gif rename to frontend/public/img/heymlz/heymlz-pullingg.gif