mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
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:
parent
5ee6e94190
commit
8e5cdbd742
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ div(ng-if='::profile.achievements.originalUser')
|
|||
small!=env.t('originalUserText')
|
||||
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
|
||||
.achievement.achievement-karaoke(ng-if='::profile.achievements.challenges.length')
|
||||
div(ng-class='::{muted: !profile.achievements.challenges.length}')
|
||||
|
|
|
|||
Loading…
Reference in a new issue