mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 01:03:01 +02:00
Merge pull request #3068 from phyzical/hotfix/2902
Fix for work in progress modal when augmenting
This commit is contained in:
@@ -36,6 +36,18 @@ export function WorkInProgressRoot(): React.ReactElement {
|
||||
const router = use.Router();
|
||||
|
||||
const faction = Factions[player.currentWorkFactionName];
|
||||
if (!faction) {
|
||||
return (
|
||||
<Grid container direction="column" justifyContent="center" alignItems="center" style={{ minHeight: "100vh" }}>
|
||||
<Grid item>
|
||||
<Typography>
|
||||
Something has gone wrong, you cannot work for {player.currentWorkFactionName || "(Faction not found)"} at this time.
|
||||
</Typography>
|
||||
</Grid>
|
||||
</Grid>
|
||||
)
|
||||
}
|
||||
|
||||
if (player.workType == CONSTANTS.WorkTypeFaction) {
|
||||
if (!faction) {
|
||||
return <>
|
||||
|
||||
Reference in New Issue
Block a user