Skip to content
Snippets Groups Projects
Commit 033477b3 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

tweaks

parent 6dfb5fdb
No related branches found
No related tags found
1 merge request!8026Custom slave to js
...@@ -8,7 +8,6 @@ App.Markets["Custom Slave"] = function() { ...@@ -8,7 +8,6 @@ App.Markets["Custom Slave"] = function() {
el.append(muscles()); el.append(muscles());
el.append(lips()); el.append(lips());
el.append(voice()); el.append(voice());
// can't we just iterate these in an array?
return el; return el;
...@@ -80,8 +79,8 @@ App.Markets["Custom Slave"] = function() { ...@@ -80,8 +79,8 @@ App.Markets["Custom Slave"] = function() {
const el = document.createElement("div"); const el = document.createElement("div");
const slaveProperty = "health"; const slaveProperty = "health";
const choices = new Map([ const choices = new Map([
[1, "Extremely healthy"],
[0, "Healthy"], [0, "Healthy"],
[1, "Extremely healthy"]
]); ]);
createDescription(el, description, slaveProperty); createDescription(el, description, slaveProperty);
el.append(choicesMaker(slaveProperty, choices, description)); el.append(choicesMaker(slaveProperty, choices, description));
......
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