fix(event): various content corrections

This commit is contained in:
Sabe Jones
2020-09-21 19:59:13 -05:00
parent 3aa58398b7
commit 0a15c0f1d8
3 changed files with 7 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ const shops = {};
/* Market */
shops.getMarketShop = function getMarketShop (user, language) {
const officialPinned = getOfficialPinnedItems(user);
return {
identifier: 'market',
text: i18n.t('market'),
@@ -30,7 +31,9 @@ shops.getMarketShop = function getMarketShop (user, language) {
categories: shops.getMarketCategories(user, language),
featured: {
text: i18n.t('featuredItems'),
items: featuredItems.market().map(i => getItemInfo(user, i.type, get(content, i.path))),
items: officialPinned.length > 0
? officialPinned.map(i => getItemInfo(user, i.type, get(content, i.path)))
: featuredItems.market().map(i => getItemInfo(user, i.type, get(content, i.path))),
},
};
};