mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-25 07:32:27 +01:00
Render faction money gain conditionally
This commit is contained in:
parent
d942d27a85
commit
73d08973f9
@ -179,11 +179,15 @@ export function WorkInProgressRoot(): React.ReactElement {
|
|||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
gains: [
|
gains: [
|
||||||
|
player.workMoneyGained > 0 ? (
|
||||||
<StatsRow name="Money" color={Settings.theme.money}>
|
<StatsRow name="Money" color={Settings.theme.money}>
|
||||||
<Typography>
|
<Typography>
|
||||||
<Money money={player.workMoneyGained} /> (<MoneyRate money={player.workMoneyGainRate * CYCLES_PER_SEC} />)
|
<Money money={player.workMoneyGained} /> (<MoneyRate money={player.workMoneyGainRate * CYCLES_PER_SEC} />)
|
||||||
</Typography>
|
</Typography>
|
||||||
</StatsRow>,
|
</StatsRow>
|
||||||
|
) : (
|
||||||
|
<></>
|
||||||
|
),
|
||||||
<StatsRow name="Faction Reputation" color={Settings.theme.rep}>
|
<StatsRow name="Faction Reputation" color={Settings.theme.rep}>
|
||||||
<Typography>
|
<Typography>
|
||||||
<Reputation reputation={player.workRepGained} /> (
|
<Reputation reputation={player.workRepGained} /> (
|
||||||
|
Loading…
Reference in New Issue
Block a user