mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
fix questshop featured items
This commit is contained in:
parent
fd5bc8f0b9
commit
6889b65123
1 changed files with 0 additions and 9 deletions
|
|
@ -23,21 +23,12 @@ const featuredItems = {
|
|||
},
|
||||
quests () {
|
||||
const featured = [];
|
||||
const bundleKeys = getScheduleMatchingGroup('bundles').items;
|
||||
bundleKeys.forEach(itemKey => {
|
||||
featured.push({
|
||||
type: 'bundles',
|
||||
path: `bundles.${itemKey}`,
|
||||
});
|
||||
});
|
||||
const petQuestKeys = getScheduleMatchingGroup('petQuests').items;
|
||||
petQuestKeys.forEach(itemKey => {
|
||||
if (featured.length < 4) {
|
||||
featured.push({
|
||||
type: 'quests',
|
||||
path: `quests.${itemKey}`,
|
||||
});
|
||||
}
|
||||
});
|
||||
return featured;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue