From 4d118002515bf972b1a34eed9f1cabb734b6621b Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Mon, 22 Sep 2025 13:05:04 +0330 Subject: [PATCH] fixed is for me bug --- frontend/components/cart/delivery/AddressModal.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/components/cart/delivery/AddressModal.vue b/frontend/components/cart/delivery/AddressModal.vue index d7f763d..3e086da 100644 --- a/frontend/components/cart/delivery/AddressModal.vue +++ b/frontend/components/cart/delivery/AddressModal.vue @@ -134,15 +134,14 @@ const handleSubmit = async () => { }; watch( - () => addressData.value.for_me, - (newValue) => { + () => [addressData.value.for_me, isShow.value], + ([newValue, newValue2]) => { if (!isEditing.value) { - addressData.value.phone = newValue == "بله" ? account.value!.phone : ""; + addressData.value.phone = newValue == "بله" && newValue2 ? account.value?.phone ?? "" : ""; } }, { immediate: true, - deep: true, } ); @@ -178,7 +177,7 @@ watch(