From 4b263cfa48ac43165997382c2a19dbf60d56a977 Mon Sep 17 00:00:00 2001 From: DCoded <dcoded@live.com> Date: Mon, 29 Jun 2020 00:47:02 -0400 Subject: [PATCH] Minor bugfix --- src/endWeek/saWorkTheFarm.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/endWeek/saWorkTheFarm.js b/src/endWeek/saWorkTheFarm.js index 1c3795cab00..639efbbb14f 100644 --- a/src/endWeek/saWorkTheFarm.js +++ b/src/endWeek/saWorkTheFarm.js @@ -28,7 +28,9 @@ App.SlaveAssignment.workTheFarm = function(slave) { r.push(sight(slave)); r.push(hearing(slave)); - t += V.foodMarket ? `As a result, ${he} produces <span class="chocolate">${massFormat(food)}</span> of food over the week. ` : ``; + if (V.foodMarket) { + r.push(`As a result, ${he} produces <span class="chocolate">${massFormat(food)}</span> of food over the week.`); + } }; const intro = () => `works as a farmhand this week.`; -- GitLab