mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
check officialPinnedItems for gala gear in market (#10745)
This commit is contained in:
@@ -338,7 +338,7 @@ module.exports = function getItemInfo (user, type, item, officialPinnedItems, la
|
|||||||
|
|
||||||
if (itemInfo) {
|
if (itemInfo) {
|
||||||
itemInfo.isSuggested = isItemSuggested(officialPinnedItems, itemInfo);
|
itemInfo.isSuggested = isItemSuggested(officialPinnedItems, itemInfo);
|
||||||
itemInfo.pinned = isPinned(user, itemInfo);
|
itemInfo.pinned = isPinned(user, itemInfo, officialPinnedItems);
|
||||||
} else {
|
} else {
|
||||||
throw new BadRequest(i18n.t('wrongItemType', {type}, language));
|
throw new BadRequest(i18n.t('wrongItemType', {type}, language));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user