only redirect if syncError
This commit is contained in:
parent
07bf3f4916
commit
179f758f4d
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue