diff --git a/src/app/pages/client/call/PersistentCallContainer.tsx b/src/app/pages/client/call/PersistentCallContainer.tsx index dcef81ae..e6258464 100644 --- a/src/app/pages/client/call/PersistentCallContainer.tsx +++ b/src/app/pages/client/call/PersistentCallContainer.tsx @@ -142,9 +142,9 @@ export function PersistentCallContainer({ children }: PersistentCallContainerPro ); useEffect(() => { - if ((activeCallRoomId && !viewedCallRoomId) || activeCallRoomId) + if ((activeCallRoomId && !viewedCallRoomId) || (activeCallRoomId && viewedCallRoomId)) setupWidget(primaryWidgetApiRef, primarySmallWidgetRef, primaryIframeRef, isPrimaryIframe); - if ((!activeCallRoomId && viewedCallRoomId) || viewedCallRoomId) + if ((!activeCallRoomId && viewedCallRoomId) || (viewedCallRoomId && activeCallRoomId)) setupWidget(backupWidgetApiRef, backupSmallWidgetRef, backupIframeRef, !isPrimaryIframe); }, [ setupWidget,