Fix: Remove restoreActiveLock from useEffect dependency

This commit is contained in:
gpt-engineer-app[bot]
2025-11-05 04:53:27 +00:00
parent e799216fbc
commit fcf5b9dba3

View File

@@ -215,7 +215,8 @@ export const useModerationQueue = (config?: UseModerationQueueConfig) => {
if (!user) return;
restoreActiveLock();
}, [user, restoreActiveLock]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [user]);
// Sync lock state across tabs when user returns to the page
useEffect(() => {