Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
fix logout
Browse files Browse the repository at this point in the history
  • Loading branch information
becca committed Mar 22, 2020
1 parent 9692060 commit c83b96f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ export default {
});
},
logout() {
return get("/users/logout");
return get("/users/logout").then(resp => {
store.set("user", null);
store.set("loggedIn", false);
});
},
register(user) {
return post("/users/register", user);
Expand Down

0 comments on commit c83b96f

Please sign in to comment.