Skip to content

Commit

Permalink
Fixes #7 : Ranking interpretation
Browse files Browse the repository at this point in the history
  • Loading branch information
gclement authored and gclement committed Jun 18, 2017
1 parent 4a1d6a3 commit 2cea78b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/overwatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ let OverwatchProvider = function () {
{
stats.rankPicture = $('div.competitive-rank > img').attr('src');
stats.season = parseSeason(stats.rankPicture);
stats.ranking = stats.season ? RANKS[stats.season.id][stats.season.rank] : '';
stats.ranking = stats.season ? RANKS[stats.season.id][stats.season.rank-1] : '';
}

stats.platform = $('#profile-platforms > a').text();
Expand Down

0 comments on commit 2cea78b

Please sign in to comment.