Commit 57d04ba7 by Trevor Austin

Get posts on login

parent af1a3877
......@@ -126,6 +126,7 @@ class Journal extends React.Component {
response.json().then((data) => {
window.localStorage.setItem("journal_session_token", data.session_token);
this.setState({isLoggedIn: true});
this.getPosts();
});
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment