Fix options in preset challenges
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 15 Apr 2021 10:33:06 +0000 (12:33 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 15 Apr 2021 10:33:06 +0000 (12:33 +0200)
client/src/views/Hall.vue

index c3c8128..bdb2805 100644 (file)
@@ -1134,7 +1134,7 @@ export default {
         alert(this.st.tr["Challenge already exists"]);
         return;
       }
-      if (this.newchallenge.memorize) this.addPresetChall(this.newchallenge);
+      if (this.newchallenge.memorize) this.addPresetChall(chall);
       delete chall["V"];
       delete chall["diag"];
       const finishAddChallenge = cid => {