Skip to content

Commit

Permalink
fix: image profile
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Apr 7, 2022
1 parent 31c4f18 commit a5e6535
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/CardCliente/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function CardCliente(props: CardClienteProps) {
<br />
</div>
<div className={styles.containerImg}>
{photo === '' ? (
{photo === '' && props.cliente?.client_avatar === undefined ? (
<Avvvatars value={props.cliente?.client_name || ''} size={50} />
) : (
<img
Expand Down
2 changes: 1 addition & 1 deletion src/components/Ticket/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function Ticket(props: Props) {
<div className="ticket">
<div className="ticket-profile">
<div className="ticket-profile-top">
{photo === '' ? (
{photo === '' && props.cliente?.client_avatar === undefined ? (
<div className="ticket-profile-top-image">
<Avvvatars value={props.cliente?.client_name || ''} size={82} />
</div>
Expand Down

0 comments on commit a5e6535

Please sign in to comment.