fix redirects, fix server syncs on join

This commit is contained in:
Katalina / stardust 2018-01-17 23:12:11 -06:00
parent 032831aff1
commit f7238ab091
14 changed files with 132 additions and 101 deletions

View file

@ -39,7 +39,10 @@ export const userInit = async dispatch => {
}
export const userLogout = async dispatch => {
await superagent.post('/api/auth/logout')
try {
await superagent.post('/api/auth/logout')
} catch (e) {
}
dispatch({
type: Symbol.for('reset user')