diff --git a/src/facilities/incubator/incubatorInteract.js b/src/facilities/incubator/incubatorInteract.js index 76dabaa79e5266c7c57aa744ea4eba4647811aa6..472889ec1066fb0e3e1901055bb6222b7051d1a3 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) {