From 299fc374b9df41041af9fa2704e2b5d71edf32cb Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Fri, 5 Feb 2021 20:16:28 -0500
Subject: [PATCH] fixes

---
 src/Corporation/manageCorporation.js | 5 +++--
 src/endWeek/economics/arcmgmt.js     | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/Corporation/manageCorporation.js b/src/Corporation/manageCorporation.js
index fb4f7ba0e72..427c1ec2774 100644
--- a/src/Corporation/manageCorporation.js
+++ b/src/Corporation/manageCorporation.js
@@ -8,7 +8,8 @@ App.Corporate.corpRaces = function() {
 			r.push(capRace);
 			if (!(V.arcologies[0].FSSubjugationist !== "unset" && V.arcologies[0].FSSubjugationistRace !== race)) {
 				if (V.corp.SpecRaces.length > 1 && V.corp.SpecTimer === 0) {
-					if ((V.corp.SpecRaces.length === 4 || V.corp.SpecRaces.length === 8) && V.corp.SpecToken > 0) {
+					const needsToken = (V.corp.SpecRaces.length === 4 || V.corp.SpecRaces.length === 8);
+					if (needsToken && V.corp.SpecToken > 0) {
 						r.push(
 							App.UI.DOM.link(
 								"Blacklist",
@@ -20,7 +21,7 @@ App.Corporate.corpRaces = function() {
 								},
 							)
 						);
-					} else if ((V.corp.SpecRaces.length !== 4 || V.corp.SpecRaces.length !== 8)) {
+					} else if (!needsToken) {
 						r.push(
 							App.UI.DOM.link(
 								"Blacklist",
diff --git a/src/endWeek/economics/arcmgmt.js b/src/endWeek/economics/arcmgmt.js
index 71a4ab0a4f6..d9c550e8745 100644
--- a/src/endWeek/economics/arcmgmt.js
+++ b/src/endWeek/economics/arcmgmt.js
@@ -641,7 +641,7 @@ App.EndWeek.arcManagement = function() {
 		r = [];
 
 		if (isNaN(_AWeekGrowth)) {
-			r.push(App.UI.DOM.makeElement("div", `Error: AWeekGrowth is NaN`, "red"));
+			App.UI.DOM.appendElement("div", el, `Error: AWeekGrowth is NaN`, "red");
 		} else {
 			V.arcologies[0].prosperity += _AWeekGrowth;
 		}
-- 
GitLab