X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=c91e1270c1f0e8e4858e47f738a47c5cbb72778c;hp=7d7f234f7cc79dec43599e7ae12a1e7d25a075a6;hb=9d15c433c207a2c3bb548d095939c3e08b4038fd;hpb=6cc34165a3ca6dcad86030c96df8c0f49c1fabad diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 7d7f234f..c91e1270 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -982,7 +982,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