diff --git a/components/dashboard/userAccount/sidebars/turns/isTurnsDetails/DetailLg.js b/components/dashboard/userAccount/sidebars/turns/isTurnsDetails/DetailLg.js index 520e848..3f9270e 100644 --- a/components/dashboard/userAccount/sidebars/turns/isTurnsDetails/DetailLg.js +++ b/components/dashboard/userAccount/sidebars/turns/isTurnsDetails/DetailLg.js @@ -120,17 +120,20 @@ function DetailLg({ appointmentData, loading }) { - - - - - تلفن:{" "} - - {appointmentData?.address?.telephone} - - - - + {/* بعضی مطبها شماره ثبت نکردهاند؛ «تلفن:» خالی بدتر از نبودنِ سطر است. */} + {appointmentData?.address?.telephone && ( + + + + + تلفن:{" "} + + {appointmentData.address.telephone} + + + + + )} {/* - - - تلفن: {appointmentData?.address?.telephone} - - + {appointmentData?.address?.telephone && ( + + + تلفن: {appointmentData.address.telephone} + + + )} diff --git a/components/doctor/detailDoctor/cards/locations/Item.js b/components/doctor/detailDoctor/cards/locations/Item.js index 7c87607..9433b68 100644 --- a/components/doctor/detailDoctor/cards/locations/Item.js +++ b/components/doctor/detailDoctor/cards/locations/Item.js @@ -50,10 +50,9 @@ function Item({ data, bookable = true }) { آدرس: {data.address} - - - تلفن: {data.telephone} - + {/* شمارهٔ مطب اینجا نمیآید: دادهٔ عمومی نیست و API هم دیگر آن را برنمیگرداند. + بیمار شماره را در «جزئیات نوبت شما» — بعد از گرفتن نوبت — میبیند. */} + {data?.map?.latitude && data?.map?.longitude && (
- تلفن:{" "} - - {appointmentData?.address?.telephone} - -
+ تلفن:{" "} + + {appointmentData.address.telephone} + +
- تلفن: {appointmentData?.address?.telephone} -
+ تلفن: {appointmentData.address.telephone} +
آدرس: {data.address}
- تلفن: {data.telephone} -