Add several UX improvements

This commit is contained in:
Kevin Thomas
2021-11-14 00:14:15 -08:00
parent adb20209c5
commit 28914fb8a4
6 changed files with 19 additions and 15 deletions

View File

@@ -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()