Skip to content
Snippets Groups Projects
Commit aed4ac49 authored by Grant's avatar Grant
Browse files

config is not always set

parent d7b253c7
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,7 @@ export const ChatContext = ({ children }: PropsWithChildren) => { ...@@ -82,7 +82,7 @@ export const ChatContext = ({ children }: PropsWithChildren) => {
if (checkInterval.current) clearInterval(checkInterval.current); if (checkInterval.current) clearInterval(checkInterval.current);
if (checkNotifs.current) clearInterval(checkNotifs.current); if (checkNotifs.current) clearInterval(checkNotifs.current);
}; };
}, []); }, [config?.chat]);
const handleWindowFocus = () => { const handleWindowFocus = () => {
console.log("[Chat] Window has gained focus"); console.log("[Chat] Window has gained focus");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment