Fix mistake: cannot use settings.randomness too early in Hall
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 12 Mar 2020 11:21:31 +0000 (12:21 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 12 Mar 2020 11:21:31 +0000 (12:21 +0100)
client/src/views/Hall.vue

index d59946f..4c73df2 100644 (file)
@@ -227,10 +227,7 @@ export default {
         vid: parseInt(localStorage.getItem("vid")) || 0,
         to: "", //name of challenged player (if any)
         cadence: localStorage.getItem("cadence") || "",
-        randomness:
-          parseInt(localStorage.getItem("challRandomness")) ||
-          // Default to global randomness if no challenges issued yet:
-          this.st.settings.randomness,
+        randomness: parseInt(localStorage.getItem("challRandomness")) || 2,
         // VariantRules object, stored to not interfere with
         // diagrams of targetted challenges:
         V: null,