Skip to content
Snippets Groups Projects
Commit b6ff098f authored by Jeremy Guiselin's avatar Jeremy Guiselin
Browse files

Update controller.js

parent add79dc7
No related branches found
No related tags found
No related merge requests found
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
prediction.prediction_win_first, prediction.prediction_win_first,
prediction.prediction_win_second prediction.prediction_win_second
]; ];
percentages.sort(); percentages.sort(function(a, b){return a-b});
if (percentages.indexOf(value) === 1) { if (percentages.indexOf(value) === 1) {
return "main-prediction"; return "main-prediction";
} }
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
'green-tick' 'green-tick'
]; ];
percentages.sort(); percentages.sort(function(a, b){return a-b});
var predictionWin = null; var predictionWin = null;
if (prediction.winner) { if (prediction.winner) {
predictionWin = prediction.prediction_win_second; predictionWin = prediction.prediction_win_second;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment