mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-13 12:47:28 +01:00
remove unecessary checks for addlNotes in getItemInfo.js
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user