Remove unnecessary binds

This commit is contained in:
6ea86b96 2017-07-11 13:15:51 +07:00
parent 443caa2740
commit 6f336c96c5

View file

@ -69,22 +69,22 @@ class ChannelSection extends React.PureComponent {
this.setState({
creatingChannel: true,
});
const success = (() => {
const success = () => {
this.setState({
creatingChannel: false,
addingChannel: false,
channel: newChannelName,
});
this.props.handleChannelChange(newChannelName);
}).bind(this);
const failure = (err => {
};
const failure = err => {
this.setState({
creatingChannel: false,
});
this.refs.newChannelName.showError(
__("Unable to create channel due to an internal error.")
);
}).bind(this);
};
this.props.createChannel(newChannelName, amount).then(success, failure);
}