diff --git a/src/ui/WorkInProgressRoot.tsx b/src/ui/WorkInProgressRoot.tsx index 2490402a9..130df6067 100644 --- a/src/ui/WorkInProgressRoot.tsx +++ b/src/ui/WorkInProgressRoot.tsx @@ -36,16 +36,16 @@ export function WorkInProgressRoot(): React.ReactElement { const router = use.Router(); const faction = Factions[player.currentWorkFactionName]; - if (!faction) { - return <> - - Sorry, You have not joined the faction {faction} yet! - - - - } - if (player.workType == CONSTANTS.WorkTypeFaction) { + if (!faction) { + return <> + + Sorry, You have not joined the faction {faction} yet! + + + + } + function cancel(): void { router.toFaction(faction); player.finishFactionWork(true); @@ -135,7 +135,6 @@ export function WorkInProgressRoot(): React.ReactElement { } function unfocus(): void { - router.toFaction(faction); router.toCity(); player.stopFocusing(); }