config is not always set
This commit is contained in:
parent
d7b253c74b
commit
aed4ac497f
|
@ -82,7 +82,7 @@ export const ChatContext = ({ children }: PropsWithChildren) => {
|
|||
if (checkInterval.current) clearInterval(checkInterval.current);
|
||||
if (checkNotifs.current) clearInterval(checkNotifs.current);
|
||||
};
|
||||
}, []);
|
||||
}, [config?.chat]);
|
||||
|
||||
const handleWindowFocus = () => {
|
||||
console.log("[Chat] Window has gained focus");
|
||||
|
|
Loading…
Reference in New Issue