From 980665b77c844ae34f85d21a61dc192390d8b8aa Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Fri, 20 Aug 2021 15:41:15 -0400 Subject: [PATCH] Fix job bug --- src/Locations/ui/CompanyLocation.tsx | 2 ++ src/PersonObjects/Player/PlayerObjectGeneralMethods.jsx | 1 + 2 files changed, 3 insertions(+) diff --git a/src/Locations/ui/CompanyLocation.tsx b/src/Locations/ui/CompanyLocation.tsx index 7b6ef6a92..63777600e 100644 --- a/src/Locations/ui/CompanyLocation.tsx +++ b/src/Locations/ui/CompanyLocation.tsx @@ -107,6 +107,8 @@ export class CompanyLocation extends React.Component { employedHere: false, } + this.props.p.location = props.locName; + this.checkIfEmployedHere(false); } diff --git a/src/PersonObjects/Player/PlayerObjectGeneralMethods.jsx b/src/PersonObjects/Player/PlayerObjectGeneralMethods.jsx index f3b76e9d9..4ee9c6204 100644 --- a/src/PersonObjects/Player/PlayerObjectGeneralMethods.jsx +++ b/src/PersonObjects/Player/PlayerObjectGeneralMethods.jsx @@ -1742,6 +1742,7 @@ export function applyForJob(entryPosType, sing=false) { } this.jobs[company.name] = pos.name; + this.companyName = this.location; document.getElementById("world-menu-header").click(); document.getElementById("world-menu-header").click();