Skip to content

Commit

Permalink
Correção complementar
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed May 27, 2023
1 parent 2951585 commit 3c77e32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/ContactDrawer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ const ContactDrawer = ({ open, handleDrawerClose, contact, loading }) => {
<CopyToClipboard content={contact.name} color="secondary" />
</Typography>
<Typography>
<Link href={`tel:${user.isTricked ? contact.number : contact.number.slice(0,-4) + "****"}`}>{user.isTricked ? contact.number : contact.number.slice(0,-4) + "****"}</Link>
<CopyToClipboard content={user.isTricked ? contact.number : contact.number.slice(0,-4) + "****"} color="secondary" />
<Link href={`tel:${user.isTricked === "enabled" ? contact.number : contact.number.slice(0,-4) + "****"}`}>{user.isTricked === "enabled" ? contact.number : contact.number.slice(0,-4) + "****"}</Link>
<CopyToClipboard content={user.isTricked === "enabled" ? contact.number : contact.number.slice(0,-4) + "****"} color="secondary" />
</Typography>
{contact.email && (
<Typography>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ContactModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const ContactModal = ({ open, onClose, contactId, initialValues, onSave }) => {
margin="dense"
className={classes.textField}
/>
{user.isTricked ?
{user.isTricked === "enabled" ?
<Field
as={TextField}
label={i18n.t("contactModal.form.number")}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Contacts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ const Contacts = () => {
{<Avatar src={contact.profilePicUrl} className={classes.avatar} />}
</TableCell>
<TableCell>{contact.name}</TableCell>
<TableCell align="center">{user.isTricked ? contact.number : contact.number.slice(0,-4) + "****"}</TableCell>
<TableCell align="center">{user.isTricked === "enabled"? contact.number : contact.number.slice(0,-4) + "****"}</TableCell>
<TableCell align="center">{contact.email}</TableCell>
<TableCell align="center">
<IconButton
Expand Down

0 comments on commit 3c77e32

Please sign in to comment.