Fixed challenges achievement always displaying (again)

Unearned achievements are hidden when viewing others' profiles, but are visible when a user views their own profile. Currently, the challenges achievement is displayed when viewing other users' profiles, even when they have not won any. This PR makes the challenges achievement display to other users' only when one or more challenges have been won.
This commit is contained in:
hairlessbear 2015-05-13 12:12:03 -04:00
parent 5ee6e94190
commit 8e5cdbd742

View file

@ -144,7 +144,7 @@ div(ng-if='::profile.achievements.originalUser')
small!=env.t('originalUserText') small!=env.t('originalUserText')
hr hr
div(ng-if='::profile.achievements.challenges || user._id == profile._id') div(ng-if='::profile.achievements.challenges.length || user._id == profile._id')
// This is a very strange icon to use. revisit // This is a very strange icon to use. revisit
.achievement.achievement-karaoke(ng-if='::profile.achievements.challenges.length') .achievement.achievement-karaoke(ng-if='::profile.achievements.challenges.length')
div(ng-class='::{muted: !profile.achievements.challenges.length}') div(ng-class='::{muted: !profile.achievements.challenges.length}')