From 42477e6592fcc5bfd73233670f95d203739be0b9 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Sat, 5 Sep 2026 00:25:45 +0200 Subject: [PATCH] fixup! wip to be discuss --- src/frontend/src/features/rooms/components/LobbyProvider.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/features/rooms/components/LobbyProvider.tsx b/src/frontend/src/features/rooms/components/LobbyProvider.tsx index 953adc60..47d51ea2 100644 --- a/src/frontend/src/features/rooms/components/LobbyProvider.tsx +++ b/src/frontend/src/features/rooms/components/LobbyProvider.tsx @@ -34,9 +34,8 @@ export const LobbyProvider = () => { refetchOnReconnect: false, refetchInterval: (query) => { if (!query.state.data?.participants?.length) return false - if (isParticipantsOpen) return ( - query.state.error ? POLL_INTERVAL_MS * 3 : POLL_INTERVAL_MS - ) + if (isParticipantsOpen) + return query.state.error ? POLL_INTERVAL_MS * 3 : POLL_INTERVAL_MS return LAZY_POLL_INTERVAL_MS }, refetchIntervalInBackground: false,