fix(pins): don't erase pinned quest potions

This commit is contained in:
Kalista Payne
2026-03-06 11:22:29 -06:00
parent a212363bda
commit 8da6065355

View File

@@ -25,7 +25,8 @@ export default function cleanupPinnedItems (user) {
if (type === 'background') {
return matchers.backgrounds.match(pinnedItem.path.split('.')[1]);
} if (type === 'premiumHatchingPotion') {
return matchers.premiumHatchingPotions.match(key);
const potion = getItemByPathAndType(type, pinnedItem.path);
return potion.questPotion || matchers.premiumHatchingPotions.match(key);
} if (type === 'mystery_set') {
return matchers.timeTravelers.match(key);
} if (type === 'seasonalQuest') {