fix(veggies): pinning and sorting

This commit is contained in:
Sabe Jones
2019-04-04 10:35:22 -05:00
parent c4f2dafc95
commit 5c2c87f523
3 changed files with 3 additions and 2 deletions

View File

@@ -669,7 +669,7 @@
let pets = this.listAnimals(animalGroup, 'pet', hideMissing, sortBy, searchText);
// Don't group special
if (animalGroup.key === 'specialPets') {
if (animalGroup.key === 'specialPets' || animalGroup.key === 'wackyPets') {
return {none: pets};
}

View File

@@ -223,6 +223,7 @@ each(wacky, (pot, key) => {
}),
premium: false,
limited: true,
wacky: true,
canBuy () {
return pot._season === CURRENT_SEASON;
},

View File

@@ -91,7 +91,7 @@ module.exports = function getItemInfo (user, type, item, officialPinnedItems, la
locked: false,
currency: 'gems',
purchaseType: 'hatchingPotions',
path: `premiumHatchingPotions.${item.key}`,
path: item.wacky ? `wackyHatchingPotions.${item.key}` : `premiumHatchingPotions.${item.key}`,
pinType: 'premiumHatchingPotion',
};
break;