From af6bb18db225a7b6934d22fd3e843e445990726c Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Mon, 31 May 2021 10:50:28 -0700 Subject: [PATCH] IO-1138 Additional offline check. --- client/src/App/App.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/App/App.jsx b/client/src/App/App.jsx index cbf096f8f..fbaedfd0a 100644 --- a/client/src/App/App.jsx +++ b/client/src/App/App.jsx @@ -40,8 +40,12 @@ const mapDispatchToProps = (dispatch) => ({ export function App({ checkUserSession, currentUser, online, setOnline }) { useEffect(() => { + if (!navigator.onLine) { + setOnline(false); + } + checkUserSession(); - }, [checkUserSession]); + }, [checkUserSession, setOnline]); //const b = Grid.useBreakpoint(); // console.log("Breakpoints:", b);