Skip to content

Commit

Permalink
fix: add curly braces to conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
amy-corson-ibigroup authored and josh-willis-arcadis committed Oct 7, 2024
1 parent b7fde3f commit 0648e80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/components/util/operator-logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ type Props = {

const OperatorLogo = ({ alt, operator, styled }: Props): JSX.Element | null => {
if (!operator?.logo) return null
if (styled)
if (styled) {
return <StyledOperatorImg alt={alt || operator.name} src={operator.logo} />
}

return <OperatorImg alt={alt || operator.name} src={operator.logo} />
}
Expand Down

0 comments on commit 0648e80

Please sign in to comment.