From 9687f5143bf0f7499dbb9c851d24f267a3952111 Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Thu, 27 Mar 2025 23:07:02 +0330 Subject: [PATCH] new changes --- .../components/cart/global/CartSummary.vue | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/frontend/components/cart/global/CartSummary.vue b/frontend/components/cart/global/CartSummary.vue index fe35394..2172d2b 100644 --- a/frontend/components/cart/global/CartSummary.vue +++ b/frontend/components/cart/global/CartSummary.vue @@ -21,17 +21,19 @@ 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 = computed(() => route.meta.nextPage as { name: string; label: string } | undefined); +const nextPage = computed( + () => route.meta.nextPage as { name: string; label: string } | undefined +); const hasSubmittedDiscountCode = computed(() => !!cart.value?.discount_code); @@ -48,11 +50,11 @@ const handleSubmitDiscountCode = () => { addToast({ message: "خطایی در ثبت کد تخفیف رخ داد", options: { - status: "error" - } + status: "error", + }, }); discountCode.value = ""; - } + }, } ); }; @@ -67,11 +69,11 @@ const handleDeleteDiscountCode = () => { addToast({ message: "خطایی در حذف کد تخفیف رخ داد", options: { - status: "error" - } + status: "error", + }, }); discountCode.value = ""; - } + }, }); };