Skip to content

Commit 80c0a9f

Browse files
author
Ives van Hoorne
committed
Fix another nullpointer
1 parent 2cf380f commit 80c0a9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/app/src/app/store/modules/live/getters.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ export function liveUsersByModule() {
1313
return {};
1414
}
1515

16-
const currentUser = getParent(this).user.id;
16+
const currentUser = getParent(this).user;
17+
18+
if (!currentUser) {
19+
return {};
20+
}
1721

1822
this.roomInfo.usersMetadata.forEach((user, userId) => {
1923
if (currentUser && userId !== currentUser.id) {

0 commit comments

Comments
 (0)