From 42bd4615fd94c40524439dd67acdd76e91996f34 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Mon, 26 Oct 2020 16:06:10 -0400
Subject: [PATCH] fix loop

---
 src/endWeek/reports/childrenReport.js | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/endWeek/reports/childrenReport.js b/src/endWeek/reports/childrenReport.js
index 0177a68e6ea..bd71be20d14 100644
--- a/src/endWeek/reports/childrenReport.js
+++ b/src/endWeek/reports/childrenReport.js
@@ -70,7 +70,7 @@ App.Facilities.Nursery.childrenReport = function childrenReport() {
 
 	function matronEducationEffects(child) {
 		// TODO: expand this
-		const { he, him, his } = getPronouns(Matron);
+		const {he, him, his} = getPronouns(Matron);
 
 		const theChildren = CL > 1 ? `the children` : `${child.slaveName}`;
 
@@ -108,7 +108,7 @@ App.Facilities.Nursery.childrenReport = function childrenReport() {
 	// MARK: Nanny Effects
 
 	function nannyFetishEffects(child, slave) {
-		const { he } = getPronouns(child);
+		const {he} = getPronouns(child);
 		const chance = jsRandom(1, 100);
 
 		if (chance > 85) {
@@ -227,7 +227,7 @@ App.Facilities.Nursery.childrenReport = function childrenReport() {
 		if (V.nurseryMuscles) {
 			const firstNanny = NL > 0 ? nannies[0] : null;
 			const caretaker = Matron ? Matron.slaveName : NL > 1 ? `A nanny` : firstNanny.slaveName;
-			const { His, He, he } = getPronouns(child);
+			const {His, He, he} = getPronouns(child);
 
 
 			const muscleSpan = App.UI.DOM.makeElement("div", 'rapid muscle development.', "improvement");
@@ -278,6 +278,7 @@ App.Facilities.Nursery.childrenReport = function childrenReport() {
 	// MARK: Miscellaneous Functions
 
 	function childFriendshipRivalries(child) {
+		const el = new DocumentFragment();
 		const cribsCopy = Array.from(V.cribs);
 
 		cribsCopy.splice(V.cribs.findIndex(c => c.ID === child.ID));
@@ -291,7 +292,7 @@ App.Facilities.Nursery.childrenReport = function childrenReport() {
 
 			const div = document.createElement("div");
 
-			const { his } = getPronouns(target);
+			const {his} = getPronouns(target);
 			const chance = jsRandom(1, 100);
 
 			let friend = 0;
@@ -391,8 +392,9 @@ App.Facilities.Nursery.childrenReport = function childrenReport() {
 				}
 			}
 
-			return div;
+			el.append(div);
 		}
+		return el;
 
 		function sameFetish(child, target) {
 			switch (child.fetish) {
-- 
GitLab