diff --git a/components/Cart/CartItem.vue b/components/Cart/CartItem.vue index 3eb56da7..c37bf71a 100644 --- a/components/Cart/CartItem.vue +++ b/components/Cart/CartItem.vue @@ -54,6 +54,13 @@ import { ref, watch } from "vue"; import { formatPrice } from "@/utils/functions"; +const props = defineProps({ + product: { + type: Object, + required: true, + }, +}); + const isRemoving = ref(false); const isUpdating = ref(false); const localQuantity = ref(props.product.quantity); @@ -65,13 +72,6 @@ watch( } ); -const props = defineProps({ - product: { - type: Object, - required: true, - }, -}); - const emit = defineEmits(["remove", "update-quantity"]); /**