From 4e517fe3b2eed63c87e4967777a984d7d72d5099 Mon Sep 17 00:00:00 2001 From: Alireza Hassani Date: Thu, 13 Aug 2026 21:04:51 +0330 Subject: [PATCH] Fix contact phone tel: links when API returns non-string values. Co-authored-by: Cursor --- src/app/contact/page.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx index e6ab1c8..f14869b 100644 --- a/src/app/contact/page.tsx +++ b/src/app/contact/page.tsx @@ -56,16 +56,19 @@ export default async function ContactPage() {

تلفن

- {phones.map((phone) => ( + {phones.map((phone) => { + const phoneText = String(phone ?? "") + return ( - {phone} + {phoneText} - ))} + ) + })}