diff --git a/app/views/play/ladder/ladder_tab.coffee b/app/views/play/ladder/ladder_tab.coffee index 6e12172d3..cbdd50da7 100644 --- a/app/views/play/ladder/ladder_tab.coffee +++ b/app/views/play/ladder/ladder_tab.coffee @@ -242,8 +242,11 @@ 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? and @leaderboards[teamName].myRank <= histogramData.length - message="##{@leaderboards[teamName].myRank} of #{histogramData.length}" + if @leaderboards[teamName].session? + if @leaderboards[teamName].myRank <= histogramData.length + message="##{@leaderboards[teamName].myRank} of #{histogramData.length}" + else + message="Rank your session!" svg.append("g") .append("text") .attr("class",rankClass)