mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +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