From 73d08973f9d2cb31be4ce6d8f032df4478e3a54e Mon Sep 17 00:00:00 2001 From: nickofolas Date: Mon, 2 May 2022 17:56:02 -0500 Subject: [PATCH] Render faction money gain conditionally --- src/ui/WorkInProgressRoot.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/ui/WorkInProgressRoot.tsx b/src/ui/WorkInProgressRoot.tsx index db5b9e721..3dcb3c92a 100644 --- a/src/ui/WorkInProgressRoot.tsx +++ b/src/ui/WorkInProgressRoot.tsx @@ -179,11 +179,15 @@ export function WorkInProgressRoot(): React.ReactElement { ), gains: [ - - - () - - , + player.workMoneyGained > 0 ? ( + + + () + + + ) : ( + <> + ), (