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() {
PrizeRatingActions.toggleShortlist(this.props.piece.id)
.then(
(res) => {
this.refreshPieceData();
return res;
})
.then(
(res) => {
this.handleShortlistSuccess(res.notification);
}
);
.then((res) => {
this.refreshPieceData();
this.handleShortlistSuccess(res.notification);
});
},
render(){