Skip to content

Commit 13fca5a

Browse files
committed
fix: Add support for a few more images where avatarUrl is missing/null
1 parent d8b1507 commit 13fca5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/games.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function GameInformation(game: GameInfoItem) {
99
return (
1010
<>
1111
<tr>
12-
<td style={{ verticalAlign: "middle" }}>{game.avatarUrl ? <img src={game.avatarUrl} width={32} /> : null}</td>
12+
<td style={{ verticalAlign: "middle" }}>{game.avatarUrl ? <img src={game.avatarUrl} width={32} /> : game.image ? <img src={game.image} width={32} /> : null}</td>
1313
<td>{game.name}</td>
1414
<td>{game.appWeb?.map(i => i.toString()).sort().join(", ") ?? AppWeb.Unknown}</td>
1515
<td>{game.os?.map(i => i.toString()).sort().join(", ") ?? OperatingSystem.Unknown}</td>

0 commit comments

Comments
 (0)