🐛 (main) do not reset user if bad connection on init app
This commit is contained in:
@@ -95,7 +95,9 @@ export default new Vuex.Store<IState>({
|
|||||||
if (navigator.onLine && hasGoodNetwork()) {
|
if (navigator.onLine && hasGoodNetwork()) {
|
||||||
user = await userService.getUser(user)
|
user = await userService.getUser(user)
|
||||||
}
|
}
|
||||||
commit(SET_USER, { user, replicate: false })
|
if (user) {
|
||||||
|
commit(SET_USER, { user, replicate: false })
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async signup({ commit }, { user, password, replicate }: IUserPassword) {
|
async signup({ commit }, { user, password, replicate }: IUserPassword) {
|
||||||
const response: IResponse = await userService.signup(user, password)
|
const response: IResponse = await userService.signup(user, password)
|
||||||
|
|||||||
Reference in New Issue
Block a user