diff --git a/website/common/script/libs/getItemByPathAndType.js b/website/common/script/libs/getItemByPathAndType.js index 039593e5b0..7c62fcadaf 100644 --- a/website/common/script/libs/getItemByPathAndType.js +++ b/website/common/script/libs/getItemByPathAndType.js @@ -2,7 +2,12 @@ import get from 'lodash/get'; import content from '../content/index'; export default function getItemByPathAndType (type, path) { - let item = get(content, path); + let item; + if (type === 'appearance') { + item = get(content, `appearance.${path}`); + } else { + item = get(content, path); + } if (type === 'timeTravelersStable') { const [, animalType, key] = path.split('.'); diff --git a/website/common/script/libs/getItemInfo.js b/website/common/script/libs/getItemInfo.js index 0b10b2613d..70f387fca0 100644 --- a/website/common/script/libs/getItemInfo.js +++ b/website/common/script/libs/getItemInfo.js @@ -385,7 +385,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang notes: '', path: `hair.color.${item.key}`, purchaseType: 'customization', - pinType: 'timeTravelersStable', + pinType: 'appearance', set: item.set, text: item.text(language), type: 'color', @@ -401,7 +401,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang locked: false, notes: '', path: `hair.base.${item.key}`, - pinType: 'timeTravelersStable', + pinType: 'appearance', purchaseType: 'customization', set: item.set, text: item.text(language), @@ -418,7 +418,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang locked: false, notes: '', path: `hair.mustache.${item.key}`, - pinType: 'timeTravelersStable', + pinType: 'appearance', purchaseType: 'customization', set: item.set, text: item.text(language), @@ -452,7 +452,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang locked: false, notes: '', path: `shirt.${item.key}`, - pinType: 'timeTravelersStable', + pinType: 'appearance', purchaseType: 'customization', set: item.set, text: item.text(language), @@ -469,7 +469,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang locked: false, path: `skin.${item.key}`, notes: '', - pinType: 'timeTravelersStable', + pinType: 'appearance', purchaseType: 'customization', set: item.set, text: item.text(language),