From 87873a535324ea107862213c187257c8fcaa810b Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sat, 8 May 2021 14:43:16 -0400 Subject: [PATCH] fix menial linebreak --- src/markets/theMarket/tradeMenials.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/markets/theMarket/tradeMenials.js b/src/markets/theMarket/tradeMenials.js index e483254910e..90c3a30c6d3 100644 --- a/src/markets/theMarket/tradeMenials.js +++ b/src/markets/theMarket/tradeMenials.js @@ -148,7 +148,7 @@ App.UI.tradeMenials = function(menialWorkersOnly) { } function menialTrading() { - const el = new DocumentFragment(); + const el = document.createElement("div"); let div = document.createElement("div"); if (!menialWorkersOnly) { if (V.menials > 1) { @@ -347,7 +347,7 @@ App.UI.tradeMenials = function(menialWorkersOnly) { } function fuckDollTrading() { - const el = new DocumentFragment(); + const el = document.createElement("div"); let div = document.createElement("div"); if (V.fuckdolls > 1) { el.append(`You own ${num(Math.trunc(V.fuckdolls))} standard Fuckdolls. `); @@ -356,6 +356,7 @@ App.UI.tradeMenials = function(menialWorkersOnly) { } else if (V.arcologies[0].FSPaternalist === "unset") { el.append(`You do not own any standard Fuckdolls. `); } + el.append(div); if ((V.fuckdolls > 0) || (V.arcologies[0].FSPaternalist === "unset")) { el.append(`The market price of standard Fuckdolls is ${cashFormat(menialPrice)}.`); if (bulkMax > 0) { @@ -447,7 +448,7 @@ App.UI.tradeMenials = function(menialWorkersOnly) { } function bioreactorTrading() { - const el = new DocumentFragment(); + const el = document.createElement("div"); let div = document.createElement("div"); if (V.menialBioreactors > 1) { el.append(`You own ${num(Math.trunc(V.menialBioreactors))} standard bioreactors. `); -- GitLab