From 456fa6d38536c724a76e5da536febb931cef84e0 Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Mon, 2 Jun 2025 11:28:34 +0530 Subject: [PATCH] show "NA" in phone number columns when contact is created without a phone number --- src/components/Directory/ListViewDirectory.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Directory/ListViewDirectory.jsx b/src/components/Directory/ListViewDirectory.jsx index e2e3d18e..1b20f67a 100644 --- a/src/components/Directory/ListViewDirectory.jsx +++ b/src/components/Directory/ListViewDirectory.jsx @@ -66,7 +66,8 @@ const ListViewDirectory = ({
- {contact.contactPhones?.map((phone, index) => ( + {contact.contactPhones?.length > 0 ? ( + contact.contactPhones?.map((phone, index) => ( {phone.phoneNumber} - ))} + )) + ):(NA)}