fix unbinded method in root component
This commit is contained in:
@@ -20,7 +20,7 @@ export default class BlockedUsers extends Component {
|
||||
api.blockUser({ id: user.id }).then(() => {
|
||||
this.setState({ unblockedUsers: this.state.unblockedUsers.filter(x => x !== user.id) });
|
||||
|
||||
if (this.props.onUnblock) this.props.onUnblock(user.id);
|
||||
if (this.props.onBlock) this.props.onBlock(user.id);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ export default class Root extends Component {
|
||||
this.onSignOut = this.onSignOut.bind(this);
|
||||
this.onBlockedUsersShow = this.onBlockedUsersShow.bind(this);
|
||||
this.onBlockedUsersHide = this.onBlockedUsersHide.bind(this);
|
||||
this.onUnblockSomeone = this.onUnblockSomeone.bind(this);
|
||||
this.checkUrlHash = this.checkUrlHash.bind(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user