From: Benjamin Auder Date: Thu, 12 Mar 2020 11:21:31 +0000 (+0100) Subject: Fix mistake: cannot use settings.randomness too early in Hall X-Git-Url: https://git.auder.net/doc/html/css/scripts/pieces/assets/config.php?a=commitdiff_plain;h=f2adb3d08cbbb9fcaf81c7e3abc625073c37e2c7;p=vchess.git Fix mistake: cannot use settings.randomness too early in Hall --- 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,