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
1 merge request!7588Buy all hero slaves
......@@ -5,7 +5,7 @@
App.Markets.specialSlave = function() {
const el = document.createElement("p");
let p;
const heroSlaves = App.Utils.buildHeroArray();
let heroSlaves = App.Utils.buildHeroArray();
let slave;
let selectedID;
......@@ -116,8 +116,14 @@ App.Markets.specialSlave = function() {
return el;
function refresh() {
jQuery("#complete-catalog").empty().append(catalog());
jQuery("#show-slave").empty().append(showSlave());
heroSlaves = App.Utils.buildHeroArray();
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