From: Benjamin Auder Date: Wed, 4 Mar 2020 21:56:25 +0000 (+0100) Subject: Fixed corr challenge refused bug X-Git-Url: https://git.auder.net/variants/Chakart/doc/css/current/scripts/%7B%7B?a=commitdiff_plain;h=0c4c389681ffae83130e9b0b70fe51ebbaf5e5e9;p=vchess.git Fixed corr challenge refused bug --- diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 83de5a44..c943ff53 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -254,7 +254,7 @@ export default { let names = {}; response.challenges.forEach(c => { if (c.uid != this.st.user.id) names[c.uid] = ""; - else if (!!c.target && c.target != this.st.user.id) + else if (c.target && c.target != this.st.user.id) names[c.target] = ""; }); const addChallenges = () => { @@ -807,7 +807,7 @@ export default { this.launchGame(c); } else { const oppsid = this.getOppsid(c); - if (oppSid) + if (oppsid) this.send("refusechallenge", { data: c.id, target: oppsid }); } this.send("deletechallenge", { data: c.id });