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:
parent
257ff9b5d3
commit
cfae0f67c0
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user