mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
market fixes 28th nov (#9593)
* list special gear by the `specialClass` - fixes #9485 * only disable the currencly label + value not the amount input - fixes #9492 * disable transformations on equipment previews - fixes #9497 * show boss strength - fixes #9522 * pin time travelers animals - closes #9382 * clean up + package-lock ? * fix quest info
This commit is contained in:
@@ -3,9 +3,9 @@ import getItemInfo from '../libs/getItemInfo';
|
||||
import { BadRequest } from '../libs/errors';
|
||||
import i18n from '../i18n';
|
||||
import isPinned from '../libs/isPinned';
|
||||
import getItemByPathAndType from '../libs/getItemByPathAndType';
|
||||
import getOfficialPinnedItems from '../libs/getOfficialPinnedItems';
|
||||
|
||||
import get from 'lodash/get';
|
||||
import each from 'lodash/each';
|
||||
import sortBy from 'lodash/sortBy';
|
||||
import lodashFind from 'lodash/find';
|
||||
@@ -136,9 +136,7 @@ function togglePinnedItem (user, {item, type, path}, req = {}) {
|
||||
// If path isn't passed it means an item was passed
|
||||
path = getItemInfo(user, type, item, officialPinnedItems, req.language).path;
|
||||
} else {
|
||||
if (!item) {
|
||||
item = get(content, path);
|
||||
}
|
||||
item = getItemByPathAndType(type, path);
|
||||
|
||||
if (!item && PATHS_WITHOUT_ITEM.indexOf(path) === -1) {
|
||||
// path not exists in our content structure
|
||||
|
||||
Reference in New Issue
Block a user