Revert to memorize = false when sending a challenge through URL
[vchess.git] / client / src / views / Hall.vue
index 7d7f234..39b9027 100644 (file)
@@ -328,7 +328,8 @@ export default {
               randomness: 0,
               memorize: false
             };
-            this.issueNewChallenge();
+            window.doClick("modalNewgame");
+            //this.issueNewChallenge(); //NOTE: doesn't work yet.
           },
           this.$route.query["variant"]
         );
@@ -982,7 +983,7 @@ export default {
             .getElementById("btnC" + newChall.type)
             .classList.add("somethingnew");
         }
-        if (chall.to == this.st.user.name) {
+        if (!!chall.to && chall.to == this.st.user.name) {
           notify(
             "New challenge",
             // fromValues.name should exist since the player is online, but