Skip to content

Commit 2752df3

Browse files
committed
(fix) check existing status user
1 parent e7a99fb commit 2752df3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ChatWindow/RoomsList/RoomContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export default {
176176
if (!this.room.users || this.room.users.length !== 2) return
177177
178178
const user = this.room.users.find(u => u._id !== this.currentUserId)
179-
if (user.status) return user.status.state
179+
if (user && user.status) return user.status.state
180180
181181
return null
182182
},

0 commit comments

Comments
 (0)