fix(doctor): guard optional chaining on address array

برخی پزشکان address ندارند؛ data?.address[0] روی آن‌ها کرش می‌کرد
(Cannot read properties of undefined). اصلاح به data?.address?.[0]
در Address و Telefon صفحه پروفایل پزشک.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
hamed
2026-06-15 00:52:32 +03:30
co-authored by Claude Opus 4.8
parent dc60b0a4f2
commit f9a4a028eb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ function Address({ data }) {
<p className="text-[#E7EEF6] text-[20px] font-semibold">آدرس:</p>
</div>
<p className="text-[#E7EEF6] text-[16px] !font-normal mt-[16px] text-right">
{data?.address[0]?.address}
{data?.address?.[0]?.address}
</p>
</div>
);