diff --git a/src/Corporation/manageCorporation.js b/src/Corporation/manageCorporation.js index fb4f7ba0e72091ccff835ef59984d3b6fa39ec2f..427c1ec27745592311e624bb578331915c02b577 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 71a4ab0a4f6075ddd0ea2dd419d32d3b1d9a0606..d9c550e87456ec8dcae279673128ff961bd6d53e 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; }