X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChallengeList.vue;h=f6d3090e0206dca954be463b7c6338e799516539;hp=b3c43e2a803751b0b602e2e085278a01a515d719;hb=2f258c37c19c5be20ec68695ddfaec2c21f7f0ae;hpb=1ad003fffabb4c95b9fd2d76a2e7ae1f20302cda diff --git a/client/src/components/ChallengeList.vue b/client/src/components/ChallengeList.vue index b3c43e2a..f6d3090e 100644 --- a/client/src/components/ChallengeList.vue +++ b/client/src/components/ChallengeList.vue @@ -30,7 +30,7 @@ export default { let maxAdded = 0 let augmentedChalls = this.challenges.map(c => { let priority = 0; - if (c.to == this.st.user.name) + if (!!c.to && c.to == this.st.user.name) priority = 1; else if (c.from.sid == this.st.user.sid || c.from.id == this.st.user.id) priority = 2;