Skip to content

Commit e06d76e

Browse files
committed
fix useParticipants incorrectly returning an array when a map is expected
1 parent 9dddaf7 commit e06d76e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hooks/useCall.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const useParticipants = (call: Call | null): Map<RoomMember, Set<string>>
4545
return useTypedEventEmitterState(
4646
call ?? undefined,
4747
CallEvent.Participants,
48-
useCallback((state) => state ?? call?.participants ?? [], [call]),
48+
useCallback((state) => state ?? call?.participants ?? new Map(), [call]),
4949
);
5050
};
5151

0 commit comments

Comments
 (0)