Skip to content
Snippets Groups Projects
Commit 181ae8cc authored by lowercasedonkey's avatar lowercasedonkey
Browse files

empty page after you buy all the things

parent b7dc1609
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
App.Markets.specialSlave = function() { App.Markets.specialSlave = function() {
const el = document.createElement("p"); const el = document.createElement("p");
let p; let p;
const heroSlaves = App.Utils.buildHeroArray(); let heroSlaves = App.Utils.buildHeroArray();
let slave; let slave;
let selectedID; let selectedID;
...@@ -116,8 +116,14 @@ App.Markets.specialSlave = function() { ...@@ -116,8 +116,14 @@ App.Markets.specialSlave = function() {
return el; return el;
function refresh() { function refresh() {
jQuery("#complete-catalog").empty().append(catalog()); heroSlaves = App.Utils.buildHeroArray();
jQuery("#show-slave").empty().append(showSlave()); if (heroSlaves.length === 0) {
jQuery("#complete-catalog").empty().append(`There are no longer any special slaves available.`);
jQuery("#show-slave").empty();
} else {
jQuery("#complete-catalog").empty().append(catalog());
jQuery("#show-slave").empty().append(showSlave());
}
} }
} }
......
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