From f2adb3d08cbbb9fcaf81c7e3abc625073c37e2c7 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Thu, 12 Mar 2020 12:21:31 +0100 Subject: [PATCH] Fix mistake: cannot use settings.randomness too early in Hall --- client/src/views/Hall.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index d59946fb..4c73df22 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -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, -- 2.44.0