Skip to content

Commit af9a042

Browse files
committed
(fix) undefined user
1 parent bd6c26c commit af9a042

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Room/RoomHeader/RoomHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export default {
158158
159159
const user = this.room.users.find(u => u._id !== this.currentUserId)
160160
161-
if (!user.status) return
161+
if (!user?.status) return
162162
163163
let text = ''
164164

0 commit comments

Comments
 (0)