Hide extra '0' when server has 0 player kills

The component shares rendering with Network as Numbers and player_kills is undefined on network.

Affects issues
- Fixed #3252
This commit is contained in:
Aurora Lahtela 2023-10-10 08:24:49 +03:00
parent 6a9a469adc
commit d6065f497b

View File

@ -60,7 +60,7 @@ const ServerAsNumbersCard = ({data}) => {
<Datapoint name={t('html.label.sessions')}
color={'teal'} icon={faCalendarCheck}
value={data.sessions} bold/>
{data.player_kills && <hr/>}
{data.player_kills !== undefined && <hr/>}
<Datapoint name={t('html.label.playerKills')}
color={'red'} icon={faCrosshairs}
value={data.player_kills} bold/>