We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d3405b + 5b5a445 commit cdfa62cCopy full SHA for cdfa62c
src/pages/Login.js
@@ -39,10 +39,15 @@ export const Login = (props) => {
39
dispatch({
40
type: 'AUTHENTICATE'
41
})
42
- navigate('/')
+ navigate('/', { replace: true })
43
} catch (e) {}
44
}
45
46
+ if (state.auth) {
47
48
+ return null
49
+ }
50
+
51
return (
52
<>
53
<Helmet>
src/pages/Register.js
@@ -37,10 +37,15 @@ export const Register = () => {
37
38
0 commit comments