Skip to content

Commit

Permalink
invert render flow
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus committed Feb 6, 2024
1 parent 49442b9 commit 2677302
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions web/src/app/util/DestinationAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ export function DestinationAvatar(
)
}

if (props.iconURL) {
const builtInIcon = builtInIcons[props.iconURL] || null
return (
<Avatar
src={builtInIcon ? undefined : props.iconURL}
alt={props.iconAltText}
>
{builtInIcon}
</Avatar>
)
if (!props.iconURL) {
return null
}

return null
const builtInIcon = builtInIcons[props.iconURL] || null
return (
<Avatar
src={builtInIcon ? undefined : props.iconURL}
alt={props.iconAltText}
>
{builtInIcon}
</Avatar>
)
}

0 comments on commit 2677302

Please sign in to comment.