Skip to content

Commit

Permalink
remove type key when not available
Browse files Browse the repository at this point in the history
  • Loading branch information
zefanjajobse committed Jan 13, 2024
1 parent 73775b0 commit 3b20592
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/routes/Stats/Player/Weapons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ export function ViewWeapons(props: Views): React.ReactElement {
<h4>{key?.weaponName}</h4>
<ListImage src={sslFix(key?.image)} loading="lazy" />
</Row>
<Row>
<h4>{key?.type}</h4>
<Description>{t("stats.rows.type")}</Description>
</Row>
{key?.type && (
<Row>
<h4>{key?.type}</h4>
<Description>{t("stats.rows.type")}</Description>
</Row>
)}
<Row>
<h4>{numberFormat.format(key?.kills)}</h4>
<Description>{t("stats.rows.kills")}</Description>
Expand Down

0 comments on commit 3b20592

Please sign in to comment.