From e06d76e3f74d8f77e33247e9f4708bb39aebdce0 Mon Sep 17 00:00:00 2001 From: David Langley Date: Wed, 27 Aug 2025 14:50:45 +0100 Subject: [PATCH] fix useParticipants incorrectly returning an array when a map is expected --- src/hooks/useCall.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useCall.ts b/src/hooks/useCall.ts index db0660df2b..cc32b46bc8 100644 --- a/src/hooks/useCall.ts +++ b/src/hooks/useCall.ts @@ -45,7 +45,7 @@ export const useParticipants = (call: Call | null): Map> return useTypedEventEmitterState( call ?? undefined, CallEvent.Participants, - useCallback((state) => state ?? call?.participants ?? [], [call]), + useCallback((state) => state ?? call?.participants ?? new Map(), [call]), ); };