Skip to content
Permalink
Browse files

fix bug that updated all players

  • Loading branch information...
tadasant committed Jan 23, 2019
1 parent 82a4006 commit 1e18de106b37c6f4b7156b443eee1814548c2a11
Showing with 3 additions and 2 deletions.
  1. +3 −2 app/src/components/Routing.js
@@ -24,8 +24,9 @@ class Routing extends Component {
console.error('No mutation error code 5879342785');
}

this.props.mutate({ variables: { id: localStorage.getItem('witw-playerId'), lastSeenDate: new Date().toISOString() } })

if (localStorage.getItem('witw-playerId')) {
this.props.mutate({ variables: { id: localStorage.getItem('witw-playerId'), lastSeenDate: new Date().toISOString() } })
}
}

render() {

0 comments on commit 1e18de1

Please sign in to comment.
You can’t perform that action at this time.