Update ChatList.tsx
This commit is contained in:
@@ -175,7 +175,7 @@ export default function ChatList() {
|
|||||||
fetchChats();
|
fetchChats();
|
||||||
|
|
||||||
// Set up polling for updates every 30 seconds
|
// Set up polling for updates every 30 seconds
|
||||||
const intervalId = setInterval(fetchChats, 30000);
|
const intervalId = setInterval(fetchChats, 5000);
|
||||||
|
|
||||||
return () => clearInterval(intervalId);
|
return () => clearInterval(intervalId);
|
||||||
}, [selectedStore]);
|
}, [selectedStore]);
|
||||||
|
|||||||
Reference in New Issue
Block a user