🐛 (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()) {
|
||||
user = await userService.getUser(user)
|
||||
}
|
||||
if (user) {
|
||||
commit(SET_USER, { user, replicate: false })
|
||||
}
|
||||
},
|
||||
async signup({ commit }, { user, password, replicate }: IUserPassword) {
|
||||
const response: IResponse = await userService.signup(user, password)
|
||||
|
||||
Reference in New Issue
Block a user