show "NA" in phone number columns when contact is created without a phone number
This commit is contained in:
parent
7bf3d69174
commit
456fa6d385
@ -66,7 +66,8 @@ const ListViewDirectory = ({
|
|||||||
|
|
||||||
<td className="px-2" style={{ width: "20%" }}>
|
<td className="px-2" style={{ width: "20%" }}>
|
||||||
<div className="d-flex flex-column align-items-start text-truncate">
|
<div className="d-flex flex-column align-items-start text-truncate">
|
||||||
{contact.contactPhones?.map((phone, index) => (
|
{contact.contactPhones?.length > 0 ? (
|
||||||
|
contact.contactPhones?.map((phone, index) => (
|
||||||
<span key={phone.id}>
|
<span key={phone.id}>
|
||||||
<i
|
<i
|
||||||
className={getPhoneIcon(phone.label)}
|
className={getPhoneIcon(phone.label)}
|
||||||
@ -74,7 +75,8 @@ const ListViewDirectory = ({
|
|||||||
></i>
|
></i>
|
||||||
<span className="ms-1">{phone.phoneNumber}</span>
|
<span className="ms-1">{phone.phoneNumber}</span>
|
||||||
</span>
|
</span>
|
||||||
))}
|
))
|
||||||
|
):(<span className="text-small m-0 px-2">NA</span>)}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user