mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
Revert "Fix: Antidotes to Avatar Transformation Items should be added to Rewards by API (#11353)" (#11406)
This reverts commit 5b57d91a9b.
This commit is contained in:
@@ -146,9 +146,8 @@ function togglePinnedItem (user, {item, type, path}, req = {}) {
|
||||
}
|
||||
|
||||
|
||||
if (path === 'armoire' || path === 'potion' || type === 'debuffPotion') {
|
||||
// @TODO: take into considertation debuffPotion type in message
|
||||
throw new BadRequest(i18n.t('cannotUnpinItem', req.language));
|
||||
if (path === 'armoire' || path === 'potion') {
|
||||
throw new BadRequest(i18n.t('cannotUnpinArmoirPotion', req.language));
|
||||
}
|
||||
|
||||
const isOfficialPinned = pathExistsInArray(officialPinnedItems, path) !== -1;
|
||||
|
||||
Reference in New Issue
Block a user