mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
recovery screen fix for when augmenting and working
This commit is contained in:
@@ -41,8 +41,8 @@ export function WorkInProgressRoot(): React.ReactElement {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Typography variant="h4" color="primary">
|
<Typography variant="h4" color="primary">
|
||||||
You have not joined {player.currentWorkFactionName || "(Faction not found)"} yet or cannot work at this time,
|
You have not joined {player.currentWorkFactionName || "(Faction not found)"} yet or cannot work at this
|
||||||
please try again if you think this should have worked
|
time, please try again if you think this should have worked
|
||||||
</Typography>
|
</Typography>
|
||||||
<Button onClick={() => router.toFactions()}>Back to Factions</Button>
|
<Button onClick={() => router.toFactions()}>Back to Factions</Button>
|
||||||
</>
|
</>
|
||||||
@@ -217,11 +217,19 @@ export function WorkInProgressRoot(): React.ReactElement {
|
|||||||
|
|
||||||
if (player.workType == CONSTANTS.WorkTypeCompany) {
|
if (player.workType == CONSTANTS.WorkTypeCompany) {
|
||||||
const comp = Companies[player.companyName];
|
const comp = Companies[player.companyName];
|
||||||
let companyRep = 0;
|
|
||||||
if (comp == null || !(comp instanceof Company)) {
|
if (comp == null || !(comp instanceof Company)) {
|
||||||
throw new Error(`Could not find Company: ${player.companyName}`);
|
return (
|
||||||
|
<>
|
||||||
|
<Typography variant="h4" color="primary">
|
||||||
|
You cannot work for {player.companyName || "(Company not found)"} at this time, please try again if you
|
||||||
|
think this should have worked
|
||||||
|
</Typography>
|
||||||
|
<Button onClick={() => router.toFactions()}>Back to Factions</Button>
|
||||||
|
</>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
companyRep = comp.playerReputation;
|
|
||||||
|
const companyRep = comp.playerReputation;
|
||||||
|
|
||||||
function cancel(): void {
|
function cancel(): void {
|
||||||
player.finishWork(true);
|
player.finishWork(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user