Skip to content

Commit

Permalink
Merge pull request #1744 from gettakaro/add-fallback-when-shop-listin…
Browse files Browse the repository at this point in the history
…g-has-no-items-attached

Add fallback when shop listing has no items attached
  • Loading branch information
niekcandaele authored Oct 29, 2024
2 parents e9b636e + 68d151c commit 576023b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export const ShopListingCard: FC<ShopListingCard> = ({
</Header>
<Avatar size="huge">
<Avatar.Image
src={`/icons/${gameServerTypeToIconFolderMap[gameServerType]}/${shopListing.items[0].item.code}.png`}
alt={`Item icon of ${shopListing.items[0].item.name}`}
src={`/icons/${gameServerTypeToIconFolderMap[gameServerType]}/${shopListing.items[0]?.item.code}.png`}
alt={`Item icon of ${shopListing.items[0]?.item.name}`}
/>
<Avatar.FallBack>{getInitials(shopListingName)}</Avatar.FallBack>
</Avatar>
Expand Down

0 comments on commit 576023b

Please sign in to comment.