mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-25 21:43:47 -04:00
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"
|
||||
|
||||
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")
|
||||
.append("text")
|
||||
.attr("class",rankClass)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue