Skip to content

Commit

Permalink
fix: Add support for a few more images where avatarUrl is missing/null
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimple committed May 12, 2024
1 parent d8b1507 commit 13fca5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/games.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function GameInformation(game: GameInfoItem) {
return (
<>
<tr>
<td style={{ verticalAlign: "middle" }}>{game.avatarUrl ? <img src={game.avatarUrl} width={32} /> : null}</td>
<td style={{ verticalAlign: "middle" }}>{game.avatarUrl ? <img src={game.avatarUrl} width={32} /> : game.image ? <img src={game.image} width={32} /> : null}</td>
<td>{game.name}</td>
<td>{game.appWeb?.map(i => i.toString()).sort().join(", ") ?? AppWeb.Unknown}</td>
<td>{game.os?.map(i => i.toString()).sort().join(", ") ?? OperatingSystem.Unknown}</td>
Expand Down

0 comments on commit 13fca5a

Please sign in to comment.