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 <noreply@anthropic.com>
This commit is contained in:
Nuwan 2026-03-05 22:42:02 +05:30
parent c4ec621a08
commit 9a49d3a423
1 changed files with 2 additions and 1 deletions

View File

@ -851,7 +851,8 @@ const JKSessionScreen = () => {
useEffect(() => { useEffect(() => {
fetchFriends(); fetchFriends();
}, [fetchFriends]); // eslint-disable-next-line react-hooks/exhaustive-deps
}, []); // fetchFriends defined below, runs once on mount
const fetchFriends = () => { const fetchFriends = () => {
if (currentUser) { if (currentUser) {