Skip to content
This repository was archived by the owner on Jul 7, 2020. It is now read-only.

Missing semi colons. #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let user;

getUser().then((user, error) => {
if (user) {
router.push({path: '/'})
router.push({path: '/'});
}
})

Expand All @@ -37,10 +37,10 @@ AmplifyEventBus.$on('authState', async (state) => {
if (state === 'signedOut'){
user = null;
AmplifyStore.commit('setUser', null);
router.push({path: '/auth'})
router.push({path: '/auth'});
} else if (state === 'signedIn') {
user = await getUser();
router.push({path: '/'})
router.push({path: '/'});
}
});

Expand All @@ -52,7 +52,7 @@ function getUser() {
}
}).catch((e) => {
AmplifyStore.commit('setUser', null);
return null
return null;
});
}

Expand Down Expand Up @@ -104,9 +104,9 @@ router.beforeResolve(async (to, from, next) => {
}
});
}
return next()
return next();
}
return next()
return next();
})

export default router