diff --git a/src/ui/WorkInProgressRoot.tsx b/src/ui/WorkInProgressRoot.tsx index e16f6a250..f5a56092d 100644 --- a/src/ui/WorkInProgressRoot.tsx +++ b/src/ui/WorkInProgressRoot.tsx @@ -194,7 +194,15 @@ export function WorkInProgressRoot(): React.ReactElement { }; if (Player.currentWork === null) { - setTimeout(() => Router.toPage(Page.Terminal)); + setTimeout(() => { + /** + * We must check again before routing to the Terminal page. The player might have started an action right before + * the callback of setTimeout is called. + */ + if (Player.currentWork === null) { + Router.toPage(Page.Terminal); + } + }); return <>; }