mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
BUGFIX: Current work is not shown in edge cases (#2208)
This commit is contained in:
@@ -194,7 +194,15 @@ export function WorkInProgressRoot(): React.ReactElement {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (Player.currentWork === null) {
|
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 <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user