mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-16 13:08:04 +00:00
Add several UX improvements
This commit is contained in:
@@ -70,7 +70,7 @@ router.beforeEach((to, from, next) => {
|
||||
} else if (to.name === 'Register') {
|
||||
instance.get('/setup')
|
||||
.then(response => {
|
||||
if (!response.data.setup) {
|
||||
if (response.status !== 200 || !response.data.setup) {
|
||||
next('/login')
|
||||
} else {
|
||||
next()
|
||||
|
||||
Reference in New Issue
Block a user