Render faction money gain conditionally

This commit is contained in:
nickofolas 2022-05-02 17:56:02 -05:00
parent d942d27a85
commit 73d08973f9

@ -179,11 +179,15 @@ export function WorkInProgressRoot(): React.ReactElement {
</>
),
gains: [
player.workMoneyGained > 0 ? (
<StatsRow name="Money" color={Settings.theme.money}>
<Typography>
<Money money={player.workMoneyGained} /> (<MoneyRate money={player.workMoneyGainRate * CYCLES_PER_SEC} />)
</Typography>
</StatsRow>,
</StatsRow>
) : (
<></>
),
<StatsRow name="Faction Reputation" color={Settings.theme.rep}>
<Typography>
<Reputation reputation={player.workRepGained} /> (