Skip to content

Commit

Permalink
Invert status code check
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Oct 8, 2023
1 parent 741755b commit b351d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const store = createStore({
url: config.apiUrl + "1/users/self"
});

if (res.status !== 200) {
if (res.status === 200) {
const data = res.data.data;
commit('setUser', {
id: data.id,
Expand Down

0 comments on commit b351d1f

Please sign in to comment.