diff --git a/web/app/components/blocked-users/blocked-users.jsx b/web/app/components/blocked-users/blocked-users.jsx index ead8a501..977f4b3e 100644 --- a/web/app/components/blocked-users/blocked-users.jsx +++ b/web/app/components/blocked-users/blocked-users.jsx @@ -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); }); } } diff --git a/web/app/components/root/root.jsx b/web/app/components/root/root.jsx index e576a7ff..a1599cde 100644 --- a/web/app/components/root/root.jsx +++ b/web/app/components/root/root.jsx @@ -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); }