Skip to content

Commit

Permalink
Merge pull request #3068 from nanaya/play_detail_tooltip
Browse files Browse the repository at this point in the history
Less misleading title when pp data doesn't exist for ranked maps
  • Loading branch information
peppy committed Apr 23, 2018
2 parents 5da343c + 095598f commit a32800c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/assets/coffee/react/_components/play-detail.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ el = React.createElement
osu.trans('users.show.extra.top_ranks.pp', amount: Math.round(score.pp).toLocaleString())
else
span
title: osu.trans('users.show.extra.top_ranks.not_ranked')
title:
if score.beatmapset.status not in ['ranked', 'approved']
osu.trans('users.show.extra.top_ranks.not_ranked')
'-'
div
className: 'detail-row__score-details'
Expand Down

0 comments on commit a32800c

Please sign in to comment.