From 9a49d3a423e24f7b9fe9c1cb42df0bc7092dab86 Mon Sep 17 00:00:00 2001 From: Nuwan Date: Thu, 5 Mar 2026 22:42:02 +0530 Subject: [PATCH] fix(32-01): remove fetchFriends from deps to fix TDZ error Original code had empty deps []. Function defined below, runs once on mount. Co-Authored-By: Claude Opus 4.5 --- jam-ui/src/components/client/JKSessionScreen.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jam-ui/src/components/client/JKSessionScreen.js b/jam-ui/src/components/client/JKSessionScreen.js index c5a42f5d0..26ffd1992 100644 --- a/jam-ui/src/components/client/JKSessionScreen.js +++ b/jam-ui/src/components/client/JKSessionScreen.js @@ -851,7 +851,8 @@ const JKSessionScreen = () => { useEffect(() => { fetchFriends(); - }, [fetchFriends]); + // eslint-disable-next-line react-hooks/exhaustive-deps +}, []); // fetchFriends defined below, runs once on mount const fetchFriends = () => { if (currentUser) {