bug when tuned in list has nothing

This commit is contained in:
talksik
2022-05-14 09:12:21 -05:00
parent bc202ba9db
commit cea77088c7
@@ -289,7 +289,7 @@ export function RealTimeRoomProvider({ children }: { children: React.ReactChild
});
// tune in if not already tuned into this line
if (!roomMap[newLineIdToSelect].tunedInMemberIds.includes(user._id.toString())) {
if (!roomMap[newLineIdToSelect].tunedInMemberIds?.includes(user._id.toString())) {
handleTuneIntoLine(newLineIdToSelect);
}
},