Skip to content

Commit

Permalink
use logo thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubik committed Nov 17, 2024
1 parent eed3151 commit 433f5ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/operators-detail/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,10 @@ class OperatorsDetailLayout extends React.Component {
const id = operatorsDetail.data.id;
const slug = url.query.id;
const tab = url.asPath.split("/").pop() || 'overview';
const logoPath = operatorsDetail.data.logo
? operatorsDetail.data.logo.url
const logoPath = operatorsDetail.data.logo?.thumbnail
? operatorsDetail.data.logo.thumbnail.url
: '';
const logo = logoPath !== '/api/placeholder.png' ? logoPath : '';
let subtitle = intl.formatMessage(
{ id: 'operator-detail.subtitle' },
{
Expand Down Expand Up @@ -194,7 +195,7 @@ class OperatorsDetailLayout extends React.Component {
)
}
tabs
logo={logoPath !== '/api/placeholder.png' ? logoPath : ''}
logo={logo}
/>

<Tabs
Expand Down

0 comments on commit 433f5ff

Please sign in to comment.