mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Add checkmark to completed quests in shop (#14269)
* add 'completed' property to quest items * show checkmark on completed quests in the shop * add 'completed' property to quest items * show checkmark on completed quests in the shop
This commit is contained in:
@@ -152,6 +152,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang
|
||||
? content.quests[item.previous].text(language)
|
||||
: null,
|
||||
unlockCondition: item.unlockCondition,
|
||||
completed: user.achievements.quests[item.key] !== undefined,
|
||||
drop: item.drop,
|
||||
boss: item.boss,
|
||||
collect: item.collect ? _mapValues(item.collect, o => ({
|
||||
|
||||
Reference in New Issue
Block a user