remove unecessary checks for addlNotes in getItemInfo.js

This commit is contained in:
MynahMarie
2020-02-18 12:42:59 +02:00
parent ea3938a91e
commit b9a3ee7f30

View File

@@ -72,7 +72,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang
itemInfo = { itemInfo = {
key: item.key, key: item.key,
text: i18n.t('potion', { potionType: item.text(language) }), text: i18n.t('potion', { potionType: item.text(language) }),
notes: item._addlNotes ? item.notes(language) : null, notes: item.notes(language),
class: `Pet_HatchingPotion_${item.key}`, class: `Pet_HatchingPotion_${item.key}`,
value: item.value, value: item.value,
locked: false, locked: false,
@@ -86,7 +86,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang
itemInfo = { itemInfo = {
key: item.key, key: item.key,
text: i18n.t('potion', { potionType: item.text(language) }), text: i18n.t('potion', { potionType: item.text(language) }),
notes: item._addlNotes ? `${item.notes(language)} ${item._addlNotes(language)}` : null, notes: `${item.notes(language)} ${item._addlNotes(language)}`,
class: `Pet_HatchingPotion_${item.key}`, class: `Pet_HatchingPotion_${item.key}`,
value: item.value, value: item.value,
locked: false, locked: false,