diff --git a/src/endWeek/reports/spaReport.js b/src/endWeek/reports/spaReport.js index 5e1471945cadfaf658efc7ef44185ac565f9efc4..f2057ae42464bce93b6889fd4233a9bc113ca749 100644 --- a/src/endWeek/reports/spaReport.js +++ b/src/endWeek/reports/spaReport.js @@ -416,15 +416,17 @@ App.EndWeek.spaReport = function() { App.SlaveAssignment.standardSlaveReport(slave, true); } } + if (restedSlaves > 0) { const {he, him} = getPronouns(restedSlave); + r = []; if (restedSlaves === 1) { r.push(`One slave has rested until ${he} reached a state of <span class="hotpink">devotion</span> and <span class="mediumaquamarine">trust</span> and will leave the spa before the end of the week.`); } else { r.push(`${restedSlaves} slaves have rested until they reached a state of <span class="hotpink">devotion</span> and <span class="mediumaquamarine">trust</span> and will leave the spa before the end of the week.`); } + App.Events.addNode(el, r, "p", "indent"); if (V.spaDecoration !== "standard") { - App.Events.addNode(el, r, "p", "indent"); r = []; r.push(`${capFirstChar(V.spaName)}'s ${V.spaDecoration} atmosphere <span class="hotpink">had an impact on`); if (restedSlaves === 1) { @@ -433,8 +435,9 @@ App.EndWeek.spaReport = function() { r.push(`them while they were`); } r.push(`</span> resting.`); + App.Events.addNode(el, r, "p", "indent"); } } - App.Events.addNode(el, r, "p", "indent"); + return el; };