Commit aed4ac49 authored by Grant's avatar Grant
Browse files

config is not always set

parent d7b253c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");