mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-30 09:57:32 +01:00
Fix DOM parse warnings
This commit is contained in:
parent
48895c8d2d
commit
4a0998c568
@ -236,7 +236,7 @@ export function CharacterStats(): React.ReactElement {
|
||||
</IconButton>
|
||||
</>
|
||||
</StatsRow>
|
||||
{player.companyName && (
|
||||
{player.companyName ? (
|
||||
<>
|
||||
<StatsRow
|
||||
name="Last Employer"
|
||||
@ -249,8 +249,10 @@ export function CharacterStats(): React.ReactElement {
|
||||
data={{ content: player.jobs[player.companyName] }}
|
||||
/>
|
||||
</>
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
{player.jobs && Object.keys(player.jobs).length !== 0 && (
|
||||
{player.jobs && Object.keys(player.jobs).length !== 0 ? (
|
||||
<StatsRow name="All Employers" color={Settings.theme.primary} data={{}}>
|
||||
<>
|
||||
<span style={{ color: Settings.theme.primary }}>{Object.keys(player.jobs).length} total</span>
|
||||
@ -259,6 +261,8 @@ export function CharacterStats(): React.ReactElement {
|
||||
</IconButton>
|
||||
</>
|
||||
</StatsRow>
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
<StatsRow
|
||||
name="Servers Owned"
|
||||
|
@ -37,7 +37,7 @@ export const StatsRow = ({ name, color, classes = useStyles(), children, data }:
|
||||
<Typography style={{ color: color }}>{name}</Typography>
|
||||
</TableCell>
|
||||
<TableCell align="right" classes={{ root: classes.cellNone }}>
|
||||
<Typography style={{ color: color }}>{content}</Typography>
|
||||
{content ? <Typography style={{ color: color }}>{content}</Typography> : <></>}
|
||||
{children}
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
Loading…
Reference in New Issue
Block a user