From 1344b39e5629f9e0cdaad5b5b2fea996208f5caa Mon Sep 17 00:00:00 2001 From: Mamalizz-dev Date: Sat, 21 Feb 2026 02:24:31 +0330 Subject: [PATCH] fixed gender input bug in dashboard --- frontend/components/global/product/ProductCard.vue | 8 ++++++-- frontend/pages/profile/index.vue | 7 ++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/frontend/components/global/product/ProductCard.vue b/frontend/components/global/product/ProductCard.vue index b77c6ca..2d87e89 100644 --- a/frontend/components/global/product/ProductCard.vue +++ b/frontend/components/global/product/ProductCard.vue @@ -108,7 +108,7 @@ const parallaxStyle = computed(() => {
- + {{ title }}
@@ -118,7 +118,11 @@ const parallaxStyle = computed(() => { > {{ price }} - {{ priceAfter }} + {{ priceAfter }}
diff --git a/frontend/pages/profile/index.vue b/frontend/pages/profile/index.vue index 80b4b8b..4ac2035 100644 --- a/frontend/pages/profile/index.vue +++ b/frontend/pages/profile/index.vue @@ -33,7 +33,7 @@ const personalData = ref({ first_name: account.value?.first_name ?? "", last_name: account.value?.last_name ?? "", phone: account.value?.phone ?? "", - gender: account.value?.gender ?? undefined, + gender: account.value?.gender || undefined, email: account.value?.email ?? "", birth_date: account.value?.birth_date ?? "", }); @@ -64,7 +64,7 @@ const formRules = computed(() => { required: helpers.withMessage("فیلد شماره تلفن الزامی می باشد", required), phoneValidator: helpers.withMessage( "شماره تلفن وارد شده معتبر نمی باشد", - helpers.regex(/^0?[1-9][0-9]{9}$/) + helpers.regex(/^0?[1-9][0-9]{9}$/), ), }, }; @@ -99,7 +99,7 @@ const updateData = () => { }, }); }, - } + }, ); }; @@ -243,6 +243,7 @@ const handleSubmit = (withValidation: boolean) => {