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() {
|
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(){
|
||||||
|
Loading…
Reference in New Issue
Block a user