Skip to content
This repository was archived by the owner on Apr 9, 2022. It is now read-only.

Commit 622e1ca

Browse files
use commit when handling auth error
1 parent 2bbe2aa commit 622e1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/store/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const actions = {
2727
return auth.login(username, password)
2828
.then(({ data }) => commit(SET_TOKEN, data.key))
2929
.then(() => commit(LOGIN_SUCCESS))
30-
.catch(() => LOGIN_FAILURE);
30+
.catch(() => commit(LOGIN_FAILURE));
3131
},
3232
logout({ commit }) {
3333
return auth.logout()

0 commit comments

Comments
 (0)