We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dddaf7 commit e06d76eCopy full SHA for e06d76e
1 file changed
src/hooks/useCall.ts
@@ -45,7 +45,7 @@ export const useParticipants = (call: Call | null): Map<RoomMember, Set<string>>
45
return useTypedEventEmitterState(
46
call ?? undefined,
47
CallEvent.Participants,
48
- useCallback((state) => state ?? call?.participants ?? [], [call]),
+ useCallback((state) => state ?? call?.participants ?? new Map(), [call]),
49
);
50
};
51
0 commit comments