don't show an empty pill when no game info is available

This commit is contained in:
verbiricha
2024-04-19 12:23:30 +02:00
parent 3e7ea94a58
commit ec53b53453
2 changed files with 6 additions and 4 deletions

View File

@ -71,9 +71,11 @@ function StreamInfo({ ev, goal }: { ev?: TaggedNostrEvent; goal?: TaggedNostrEve
<StreamTimer ev={ev} />
</Pill>
)}
<Pill>
<GameInfoCard gameId={gameId} gameInfo={gameInfo} showImage={false} link={true} />
</Pill>
{gameId && gameInfo && (
<Pill>
<GameInfoCard gameId={gameId} gameInfo={gameInfo} showImage={false} link={true} />
</Pill>
)}
{ev && <Tags ev={ev} />}
</div>
{isMine && (