fix bug of quiting for currently working faction

This commit is contained in:
Olivier Gagnon 2022-01-11 12:21:03 -05:00
parent fa0f5cb451
commit ea2f53e3b4
5 changed files with 27 additions and 22 deletions

36
dist/vendor.bundle.js vendored

File diff suppressed because one or more lines are too long

@ -48,6 +48,11 @@
</script>
<style>
html, body {
margin: 0;
padding: 0;
height: 100%;
}
body {
background-color: black;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1821,7 +1821,7 @@ export function getNextCompanyPosition(
}
export function quitJob(this: IPlayer, company: string): void {
if (this.isWorking == true && this.workType == "Working for Company" && this.companyName == company) {
if (this.isWorking == true && this.workType.includes("Working for Company") && this.companyName == company) {
this.isWorking = false;
this.companyName = "";
}