mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-03-29 00:08:39 +01:00
added extra check for error
This commit is contained in:
parent
2ab3e5a94d
commit
8da785420e
@ -297,6 +297,7 @@ var Users = React.createClass({
|
|||||||
},
|
},
|
||||||
componentDidMount: function(){
|
componentDidMount: function(){
|
||||||
boards.searchUsers().on('user',(id) => {
|
boards.searchUsers().on('user',(id) => {
|
||||||
|
if(id === undefined) console.log('found undefined user???')
|
||||||
if(this.isMounted() && this.state.users.indexOf(id) < 0)
|
if(this.isMounted() && this.state.users.indexOf(id) < 0)
|
||||||
this.setState({ users: this.state.users.concat(id) })
|
this.setState({ users: this.state.users.concat(id) })
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user