From: Benjamin Auder Date: Wed, 11 Mar 2020 12:54:03 +0000 (+0100) Subject: Fix issues with preset challenges X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/images/doc/html/common.css?a=commitdiff_plain;h=41c5b662cfbe236402f67f383b40c900b8e7965b;p=vchess.git Fix issues with preset challenges --- diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 829e5b7d..32d59639 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -845,8 +845,7 @@ export default { const vModule = await import("@/variants/" + vname + ".js"); this.newchallenge.V = vModule.VariantRules; this.newchallenge.vname = vname; - if (!!cb) - cb(); + if (!!cb) cb(); }, trySetNewchallDiag: function() { if (!this.newchallenge.fen) { @@ -872,7 +871,7 @@ export default { this.newchallenge.vid = pchall.vid; this.newchallenge.cadence = pchall.cadence; this.newchallenge.randomness = pchall.randomness; - this.issueNewChallenge(); + this.loadNewchallVariant(this.issueNewChallenge); }, issueNewChallenge: async function() { if (!!(this.newchallenge.cadence.match(/^[0-9]+$/)))