1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

Fix unnecessary promise chain in PrizePieceRatings

This commit is contained in:
Brett Sun 2015-12-08 15:09:33 +01:00
parent 257ff9b5d3
commit cfae0f67c0

View File

@ -313,16 +313,10 @@ let PrizePieceRatings = React.createClass({
onSelectChange() { onSelectChange() {
PrizeRatingActions.toggleShortlist(this.props.piece.id) PrizeRatingActions.toggleShortlist(this.props.piece.id)
.then( .then((res) => {
(res) => { this.refreshPieceData();
this.refreshPieceData(); this.handleShortlistSuccess(res.notification);
return res; });
})
.then(
(res) => {
this.handleShortlistSuccess(res.notification);
}
);
}, },
render(){ render(){