diff --git a/frontend/app.vue b/frontend/app.vue
index a73cb04..d570ea3 100644
--- a/frontend/app.vue
+++ b/frontend/app.vue
@@ -35,6 +35,6 @@ const closeModal = () => {
/>
-
+
diff --git a/frontend/components/cart/delivery/AddressModal.vue b/frontend/components/cart/delivery/AddressModal.vue
index 5b2aff8..c8a33f5 100644
--- a/frontend/components/cart/delivery/AddressModal.vue
+++ b/frontend/components/cart/delivery/AddressModal.vue
@@ -109,7 +109,7 @@ watch(
(newValue) => {
if (!isEditing.value) {
addressData.value.phone =
- newValue == "بله" ? account.value?.phone : "";
+ newValue == "بله" ? account.value!.phone : "";
}
},
{
diff --git a/frontend/components/cart/global/CartSummary.vue b/frontend/components/cart/global/CartSummary.vue
index 8ed8a79..fe35394 100644
--- a/frontend/components/cart/global/CartSummary.vue
+++ b/frontend/components/cart/global/CartSummary.vue
@@ -21,18 +21,17 @@ const discountCode = ref(cart.value?.discount_code?.code || "");
const {
mutateAsync: submitDiscountCode,
- isPending: submitDiscountCodeIsPending,
+ isPending: submitDiscountCodeIsPending
} = useSubmitDiscountCode();
const {
mutateAsync: deleteDiscountCode,
- isPending: deleteDiscountCodeIsPending,
+ isPending: deleteDiscountCodeIsPending
} = useDeleteDiscountCode();
// computed
-const nextPage: ComputedRef<{ name: string; label: string } | undefined> =
- computed(() => route.meta.nextPage);
+const nextPage = computed(() => route.meta.nextPage as { name: string; label: string } | undefined);
const hasSubmittedDiscountCode = computed(() => !!cart.value?.discount_code);
@@ -49,11 +48,11 @@ const handleSubmitDiscountCode = () => {
addToast({
message: "خطایی در ثبت کد تخفیف رخ داد",
options: {
- status: "error",
- },
+ status: "error"
+ }
});
discountCode.value = "";
- },
+ }
}
);
};
@@ -68,11 +67,11 @@ const handleDeleteDiscountCode = () => {
addToast({
message: "خطایی در حذف کد تخفیف رخ داد",
options: {
- status: "error",
- },
+ status: "error"
+ }
});
discountCode.value = "";
- },
+ }
});
};
diff --git a/frontend/components/cart/global/OrderSummary.vue b/frontend/components/cart/global/OrderSummary.vue
index 026a3aa..3a08d1b 100644
--- a/frontend/components/cart/global/OrderSummary.vue
+++ b/frontend/components/cart/global/OrderSummary.vue
@@ -44,7 +44,7 @@ const { data: cart, isLoading: cartIsLoading } = useGetCartOrders();