diff options
| author | raeno <just.raeno@gmail.com> | 2018-12-05 20:19:39 +0400 |
|---|---|---|
| committer | raeno <just.raeno@gmail.com> | 2018-12-05 20:19:39 +0400 |
| commit | f1d1fd64d3b560e138b502e38b7d697a8ad99b41 (patch) | |
| tree | 19a10c6dea509f25a6a09c593f6d5c1fdebf9fcb /src/components/registration/registration.js | |
| parent | 91a72d51fffb241bb7c9cba78ea2b5b47dce7db3 (diff) | |
Clean up the code
Diffstat (limited to 'src/components/registration/registration.js')
| -rw-r--r-- | src/components/registration/registration.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js index 8559633b..27b94d69 100644 --- a/src/components/registration/registration.js +++ b/src/components/registration/registration.js @@ -31,10 +31,6 @@ const registration = { if ((!this.registrationOpen && !this.token) || this.signedIn) { this.$router.push('/main/all') } - // // Seems like this doesn't work at first page open for some reason - // if (this.$store.state.instance.registrationOpen && this.token) { - // this.$router.push('/registration') - // } }, computed: { token () { return this.$route.params.token }, @@ -43,7 +39,7 @@ const registration = { signedIn: (state) => !!state.users.currentUser, isPending: (state) => state.users[SIGN_UP.isPending], serverValidationErrors: (state) => state.users[SIGN_UP.errors], - termsofservice: (state) => state.instance.tos + termsOfService: (state) => state.instance.tos }) }, methods: { |
