Implement realtime queue fix

This commit is contained in:
gpt-engineer-app[bot]
2025-10-09 13:54:39 +00:00
parent 57368eb309
commit 1d45294703
5 changed files with 200 additions and 11 deletions

View File

@@ -80,11 +80,9 @@ export const useModerationQueue = () => {
}
}, [user]);
// Fetch stats on mount and periodically
// Fetch stats on mount only (realtime updates handled by useModerationStats)
useEffect(() => {
fetchStats();
const interval = setInterval(fetchStats, 30000); // Every 30 seconds
return () => clearInterval(interval);
}, [fetchStats]);
// Start countdown timer for lock expiry