From e76a36621e534eff6fd09c96c11cf94a5ec6fa92 Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Tue, 5 Jan 2016 19:45:49 +0100 Subject: [PATCH] Use correct `prize_round` parameter --- .../prize/simple_prize/fetchers/prize_rating_fetcher.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/components/whitelabel/prize/simple_prize/fetchers/prize_rating_fetcher.js b/js/components/whitelabel/prize/simple_prize/fetchers/prize_rating_fetcher.js index 9ec82c30..e2f20d93 100644 --- a/js/components/whitelabel/prize/simple_prize/fetchers/prize_rating_fetcher.js +++ b/js/components/whitelabel/prize/simple_prize/fetchers/prize_rating_fetcher.js @@ -10,7 +10,7 @@ let PrizeRatingFetcher = { }; if (typeof round === 'number') { - params.round = round; + params['prize_round'] = round; } return requests.get('rating_average', params); @@ -22,7 +22,7 @@ let PrizeRatingFetcher = { }; if (typeof round === 'number') { - params.round = round; + params['prize_round'] = round; } return requests.get('rating', params); @@ -35,7 +35,7 @@ let PrizeRatingFetcher = { }; if (typeof round === 'number') { - body.round = round; + body['prize_round'] = round; } return requests.post('ratings', { body });