diff --git a/frontend/src/components/ContactDrawer/index.js b/frontend/src/components/ContactDrawer/index.js index 2e3b5db6..d8da29ef 100644 --- a/frontend/src/components/ContactDrawer/index.js +++ b/frontend/src/components/ContactDrawer/index.js @@ -128,8 +128,8 @@ const ContactDrawer = ({ open, handleDrawerClose, contact, loading }) => { - {user.isTricked ? contact.number : contact.number.slice(0,-4) + "****"} - + {user.isTricked === "enabled" ? contact.number : contact.number.slice(0,-4) + "****"} + {contact.email && ( diff --git a/frontend/src/components/ContactModal/index.js b/frontend/src/components/ContactModal/index.js index b3129cfd..b1e27b41 100644 --- a/frontend/src/components/ContactModal/index.js +++ b/frontend/src/components/ContactModal/index.js @@ -171,7 +171,7 @@ const ContactModal = ({ open, onClose, contactId, initialValues, onSave }) => { margin="dense" className={classes.textField} /> - {user.isTricked ? + {user.isTricked === "enabled" ? { {} {contact.name} - {user.isTricked ? contact.number : contact.number.slice(0,-4) + "****"} + {user.isTricked === "enabled"? contact.number : contact.number.slice(0,-4) + "****"} {contact.email}