diff --git a/src/interaction/main/mainLinks.js b/src/interaction/main/mainLinks.js index aa3ecedeb1c8f13cc584a7d7b2068e9a45fed31a..c2e7c0e9e0d51d1400c799a8c3e63d6ee4b688d0 100644 --- a/src/interaction/main/mainLinks.js +++ b/src/interaction/main/mainLinks.js @@ -127,10 +127,7 @@ App.UI.View.MainLinks = function() { if (V.completedOrgans.length > 0) { /* first remove any organs with no corresponding slave */ V.completedOrgans = V.completedOrgans.filter(organ => { - if (typeof organ === 'object' && getSlave(organ.ID) !== undefined) - return true; - else - return false; + return (typeof organ === 'object' && getSlave(organ.ID) !== undefined); }); /* cycle through slaves, for each slave cycle through completed organs and track how many are of the interrogated slave (and if organs have a slaves to be implanted on) */ for (let i = 0; i < V.slaves.length; i++) {