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

@ -77,7 +77,7 @@ export function LiveChat({
rb.withFilter().kinds([LIVE_STREAM_CHAT, LIVE_STREAM_RAID, LIVE_STREAM_CLIP]).tag("a", [aTag]).limit(200); rb.withFilter().kinds([LIVE_STREAM_CHAT, LIVE_STREAM_RAID, LIVE_STREAM_CLIP]).tag("a", [aTag]).limit(200);
} }
}, },
true true,
); );
const login = useLogin(); const login = useLogin();
const started = useMemo(() => { const started = useMemo(() => {

View File

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