From 4c78fd77ed9fbd1442b281e22e7a4ff2f815a430 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Mon, 19 Oct 2020 09:47:37 -0400
Subject: [PATCH] fix sort

---
 src/facilities/incubator/incubatorInteract.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/facilities/incubator/incubatorInteract.js b/src/facilities/incubator/incubatorInteract.js
index 76dabaa79e5..472889ec106 100644
--- a/src/facilities/incubator/incubatorInteract.js
+++ b/src/facilities/incubator/incubatorInteract.js
@@ -212,15 +212,15 @@ App.UI.incubator = function() {
 					const momDiv = document.createElement("div");
 					momDiv.id = _slaveId;
 					momDiv.classList.add("possible");
-					momDiv["data-preg-count"] = _WL;
-					momDiv["data-reserved-spots"] = _reservedIncubator;
-					momDiv["data-preg-week"] = _pregWeek;
-					momDiv["data-name"] = _slaveName;
+
+					momDiv.setAttribute("data-preg-count", slave.womb.length);
+					momDiv.setAttribute("data-reserved-spots", _reservedIncubator);
+					momDiv.setAttribute("data-preg-week", _pregWeek);
+					momDiv.setAttribute("data-name", _slaveName);
 
 					linkArray = [];
 					const choices = document.createElement("div");
 					choices.classList.add("choices");
-					// <div class="possible" @id="_slaveId" @data-preg - count="_WL" @data-reserved - spots="_reservedIncubator" @data-preg - week="_pregWeek" @data-name="_slaveName" >
 					r.push(App.UI.DOM.slaveDescriptionDialog(slave));
 					r.push(` is ${slave.pregWeek} week`);
 					if (slave.pregWeek > 1) {
-- 
GitLab