Skip to content
Snippets Groups Projects
Commit 29e0082a authored by svornost's avatar svornost
Browse files

empty array, not empty string

parent fa289e81
No related branches found
No related tags found
1 merge request!6243Strip some SC macros from mainLinks.js
......@@ -135,7 +135,7 @@ App.UI.View.MainLinks = function() {
} else {
r += 'an organ';
}
r += ` for </span>${App.UI.link(V.slaves[i].slaveName, () => { V.activeSlave = V.slaves[i]; }, "", "Slave Interact")}<span class="yellow"> which `;
r += ` for </span>${App.UI.link(V.slaves[i].slaveName, () => { V.activeSlave = V.slaves[i]; }, [], "Slave Interact")}<span class="yellow"> which `;
if (slaveOrgans > 1) {
r += 'are';
} else {
......@@ -151,7 +151,7 @@ App.UI.View.MainLinks = function() {
if (getSlave(V.adjustProsthetics[j].slaveID) !== undefined) {
const i = V.slaveIndices[V.adjustProsthetics[j].slaveID];
if (V.adjustProsthetics[j].workLeft <= 0) {
r += `<br><span class="yellow">The lab has completed ${addA(setup.prosthetics[V.adjustProsthetics[j].id].name)} for</span> <span id="name">${App.UI.link(SlaveFullName(V.slaves[i]), () => { V.activeSlave = V.slaves[i]; }, "", "Slave Interact")},</span> <span class="yellow"> which is ready to be attached.</span>`;
r += `<br><span class="yellow">The lab has completed ${addA(setup.prosthetics[V.adjustProsthetics[j].id].name)} for</span> <span id="name">${App.UI.link(SlaveFullName(V.slaves[i]), () => { V.activeSlave = V.slaves[i]; }, [], "Slave Interact")},</span> <span class="yellow"> which is ready to be attached.</span>`;
}
} else {
V.adjustProsthetics.splice(j, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment