Skip to content

Commit

Permalink
Arreglado localStorage al logout
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlaizg committed Dec 19, 2017
1 parent 5e12681 commit 0d58f64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class App extends Component {

logout = () => {
localStorage.token = null
localStorage.username = null
this.setState({
logged: (localStorage.token !== 'null')
})
Expand Down

0 comments on commit 0d58f64

Please sign in to comment.