Fix rank for unranked sessions on ladder histogram
This commit is contained in:
parent
934c853789
commit
bd1261802d
1 changed files with 2 additions and 1 deletions
|
@ -242,7 +242,8 @@ module.exports = class LadderTabView extends CocoView
|
||||||
if teamName.toLowerCase() is "humans" then rankClass = "rank-text humans-rank-text"
|
if teamName.toLowerCase() is "humans" then rankClass = "rank-text humans-rank-text"
|
||||||
|
|
||||||
message = "#{histogramData.length} players"
|
message = "#{histogramData.length} players"
|
||||||
if @leaderboards[teamName].session? then message="##{@leaderboards[teamName].myRank} of #{histogramData.length}"
|
if @leaderboards[teamName].session? and @leaderboards[teamName].myRank <= histogramData.length
|
||||||
|
message="##{@leaderboards[teamName].myRank} of #{histogramData.length}"
|
||||||
svg.append("g")
|
svg.append("g")
|
||||||
.append("text")
|
.append("text")
|
||||||
.attr("class",rankClass)
|
.attr("class",rankClass)
|
||||||
|
|
Reference in a new issue