diff --git a/src/markets/marketUI.js b/src/markets/marketUI.js index 616a927c9076ccaca9d93ddad56c1b1b7f5236b9..cd1f12d163420ec598359add4b51781c0cecc332 100644 --- a/src/markets/marketUI.js +++ b/src/markets/marketUI.js @@ -141,7 +141,7 @@ App.Markets.purchaseFramework = function(slaveMarket, {sTitleSingular = "slave", return el; function student() { - if ([App.Data.misc.schools].includes(slaveMarket)) { + if (App.Data.misc.schools.includes(slaveMarket)) { V[slaveMarket].schoolSale = 0; V[slaveMarket].studentsBought += 1; } diff --git a/src/markets/theMarket/buySlaves.js b/src/markets/theMarket/buySlaves.js index 728d250f69a4c333015b1252515dc82de8b6a8b7..4bc84e174e308fa2ad256c773a538caaaea7f308 100644 --- a/src/markets/theMarket/buySlaves.js +++ b/src/markets/theMarket/buySlaves.js @@ -201,7 +201,7 @@ App.UI.buySlaves = function() { if (store.note) { App.UI.DOM.appendNewElement("span", el, ` ${store.note}`, "note"); } - if ([App.Data.misc.schools].includes(store.marketType)) { + if (App.Data.misc.schools.includes(store.marketType)) { if (V[store.marketType].schoolSale === 1) { App.UI.DOM.appendNewElement("span", el, `Offering your first purchase at half price this week. `, "yellow"); }