mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
pets: bug fix for users who haven't been properly converted to pets array system
This commit is contained in:
parent
d59f1f6925
commit
aef76ae969
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ viewHelpers = (view) ->
|
|||
classes += ' color-best'
|
||||
return classes
|
||||
|
||||
view.fn 'ownsPet', (pet, userPets) -> !!userPets && userPets.indexOf(pet) != -1
|
||||
view.fn 'ownsPet', (pet, userPets) -> _.isArray(userPets) and userPets.indexOf(pet) != -1
|
||||
|
||||
view.fn 'friendlyTimestamp', (timestamp) -> moment(timestamp).format('MM/DD h:mm:ss a')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue