From 9ce6da35fb215b96d2c4b876f1f9797a557dafc4 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Fri, 25 Jul 2025 14:46:13 +0530 Subject: [PATCH] Adding "( , )" when user has multiple phone numbers. --- src/components/Directory/ProfileContactDirectory.jsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/Directory/ProfileContactDirectory.jsx b/src/components/Directory/ProfileContactDirectory.jsx index 297c2904..62ca077f 100644 --- a/src/components/Directory/ProfileContactDirectory.jsx +++ b/src/components/Directory/ProfileContactDirectory.jsx @@ -84,15 +84,19 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => { {contactProfile?.contactPhones?.length > 0 && (
-
+

Phone :

    - {contactProfile?.contactPhones.map((phone, idx) => ( -
  • + {contactProfile.contactPhones.map((phone, idx) => ( +
  • {phone.phoneNumber} + {idx < contactProfile.contactPhones.length - 1 && ","}
  • ))}
@@ -100,6 +104,7 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => {
)} + {contactProfile?.createdAt && (