From be30e01a50abeaab137d108e50731e6c92bc55a3 Mon Sep 17 00:00:00 2001 From: AeThex Date: Wed, 15 Apr 2026 02:10:22 +0000 Subject: [PATCH] fix: remove .catch() from Supabase channel.subscribe() calls RealtimeChannel.subscribe() returns the channel object, not a Promise. Calling .catch() on it throws at runtime. Co-Authored-By: Claude Sonnet 4.6 --- client/pages/Activity.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/pages/Activity.tsx b/client/pages/Activity.tsx index 28aa2fa6..8ca062ae 100644 --- a/client/pages/Activity.tsx +++ b/client/pages/Activity.tsx @@ -1042,7 +1042,7 @@ function PollsTab({ userId, username }: { userId?: string; username?: string }) }, ); - channel.subscribe().catch(() => {}); + channel.subscribe(); return () => { supabase.removeChannel(channel); }; @@ -2657,7 +2657,7 @@ function ChatTab({ }, ); - channel.subscribe().catch(() => {}); + channel.subscribe(); return () => { clearInterval(interval);