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:
Matteo Pagliazzi
2019-10-07 16:55:44 +02:00
committed by GitHub
parent 5b57d91a9b
commit 50cae0165c
14 changed files with 35 additions and 214 deletions

View File

@@ -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;