From be35ee02585ffe658f5a36a0bce6a181b8e40a0e Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Wed, 25 Sep 2024 19:49:01 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(frontend)=20prevent=20side=20panel?= =?UTF-8?q?=20and=20chat=20from=20opening=20simultaneously?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed issue where side panel could open while chat was already open. Resolved recent bug introduced in a previous commit. --- .../src/features/rooms/livekit/hooks/useWidgetInteraction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/features/rooms/livekit/hooks/useWidgetInteraction.ts b/src/frontend/src/features/rooms/livekit/hooks/useWidgetInteraction.ts index 8e44171d..19f2af07 100644 --- a/src/frontend/src/features/rooms/livekit/hooks/useWidgetInteraction.ts +++ b/src/frontend/src/features/rooms/livekit/hooks/useWidgetInteraction.ts @@ -19,7 +19,7 @@ export const useWidgetInteraction = () => { } const toggleChat = () => { - if (isParticipantsOpen) { + if (isParticipantsOpen || isEffectsOpen) { layoutStore.sidePanel = null } if (dispatch) {