From c62637790405d845f8ab6440f1b034f661697b81 Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Mon, 22 Aug 2022 20:16:45 -0400 Subject: [PATCH] Add singularity check for finishing company work --- src/Work/CompanyWork.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/Work/CompanyWork.tsx b/src/Work/CompanyWork.tsx index 40b859daa..dca07d85c 100644 --- a/src/Work/CompanyWork.tsx +++ b/src/Work/CompanyWork.tsx @@ -51,13 +51,15 @@ export class CompanyWork extends Work { return false; } finish(): void { - dialogBoxCreate( - <> - You finished working for {this.companyName} -
- You have reputation with them. - , - ); + if (!this.singularity) { + dialogBoxCreate( + <> + You finished working for {this.companyName} +
+ You have reputation with them. + , + ); + } } APICopy(): Record {