From 3c77e32fdafa8288adb93d2baa0bd49ce77a75ec Mon Sep 17 00:00:00 2001 From: rtenorioh Date: Sat, 27 May 2023 02:07:03 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20complementar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/ContactDrawer/index.js | 4 ++-- frontend/src/components/ContactModal/index.js | 2 +- frontend/src/pages/Contacts/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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}