From b307333ae4c794a75a42a5c464f48edba6843992 Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Fri, 23 Oct 2020 17:49:11 -0700
Subject: [PATCH] Fix stray span text in weatherFreeze

---
 src/endWeek/economics/arcmgmt.js | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/endWeek/economics/arcmgmt.js b/src/endWeek/economics/arcmgmt.js
index 7029a303376..cec242c0fe7 100644
--- a/src/endWeek/economics/arcmgmt.js
+++ b/src/endWeek/economics/arcmgmt.js
@@ -1424,24 +1424,23 @@ globalThis.arcmgmt = function() {
 			if (V.secExpEnabled > 0 && V.SecExp.buildings.transportHub) {
 				if (V.SecExp.buildings.transportHub.surfaceTransport < 4) {
 					_weatherFreeze = 1;
-					$(el).append(App.UI.DOM.makeElement("div", `The terrible weather is <span class="red">preventing people from entering or leaving</span> your arcology. Improving your transport infrastructure will prevent this from happening.`, "note"));
+					$(el).append();
 				}
 			} else if (V.antiWeatherFreeze < 2) {
 				_weatherFreeze = 1;
-				$(el).append(App.UI.DOM.makeElement("div", `The terrible weather is <span class="red">preventing people from entering or leaving</span> your arcology. Improving your transport infrastructure will prevent this from happening.`, "note"));
 			}
 		} else if (V.weatherToday.severity > 2) {
 			if (V.secExpEnabled > 0 && V.SecExp.buildings.transportHub) {
 				if (V.SecExp.buildings.transportHub.surfaceTransport < 3) {
 					_weatherFreeze = 1;
-					$(el).append(App.UI.DOM.makeElement("div", `The terrible weather is <span class="red">preventing people from entering or leaving</span> your arcology. Improving your transport infrastructure will prevent this from happening.`, "note"));
 				}
 			} else if (V.antiWeatherFreeze < 1) {
 				_weatherFreeze = 1;
-				$(el).append(App.UI.DOM.makeElement("div", `The terrible weather is <span class="red">preventing people from entering or leaving</span> your arcology. Improving your transport infrastructure will prevent this from happening.`, "note"));
 			}
 		}
 		if (_weatherFreeze) {
+			const warning = App.UI.DOM.combineNodes(`The terrible weather is `, App.UI.DOM.makeElement("span", `preventing people from entering or leaving`, "red"), ` your arcology. Improving your transport infrastructure will prevent this from happening.`);
+			App.UI.DOM.appendNewElement("div", el, warning, "note");
 			V.weatherAwareness = 1;
 		}
 		return _weatherFreeze;
-- 
GitLab