projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes, improvements
[vchess.git]
/
client
/
src
/
components
/
ChallengeList.vue
diff --git
a/client/src/components/ChallengeList.vue
b/client/src/components/ChallengeList.vue
index
b3c43e2
..
f6d3090
100644
(file)
--- 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;
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;
priority = 1;
else if (c.from.sid == this.st.user.sid || c.from.id == this.st.user.id)
priority = 2;