diff --git a/src/js/itemAvailability.js b/src/js/itemAvailability.js index 044139009a3433d6a5d7cd8594ea80513be4eec8..8a05c65810293bc13806680888ae134218090353 100644 --- a/src/js/itemAvailability.js +++ b/src/js/itemAvailability.js @@ -104,7 +104,7 @@ globalThis.isItemAccessible = (function() { return true; } if (item.hasOwnProperty("rs")) { - if (item.rs) { + if (item.rs === true) { return true; } } @@ -113,7 +113,7 @@ globalThis.isItemAccessible = (function() { return true; } } - if (slaveResults) { // If we still haven't returned true or false, then we display why this particular slave can't use the item. + if (slaveResults && slaveResults !== true) { // If we still haven't returned true or false, then we display why this particular slave can't use the item. return slaveResults; } return false;