From 179f758f4d98ffb411f66e9ae1145f036ce71c5b Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 22 Oct 2019 16:43:51 -0400 Subject: [PATCH] only redirect if syncError --- src/ui/component/app/view.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/component/app/view.jsx b/src/ui/component/app/view.jsx index aeb54c564..80fd74303 100644 --- a/src/ui/component/app/view.jsx +++ b/src/ui/component/app/view.jsx @@ -189,7 +189,9 @@ function App(props: Props) { }, [hasVerifiedEmail, syncEnabled, checkSync, hasDeterminedIfNewUser]); useEffect(() => { - history.push(`/$/${PAGES.AUTH}?redirect=${pathname}`); + if (syncError) { + history.push(`/$/${PAGES.AUTH}?redirect=${pathname}`); + } }, [syncError, pathname]); if (!user) {