diff --git a/website/common/script/content/hatching-potions.js b/website/common/script/content/hatching-potions.js index db95874ee1..fdc9605400 100644 --- a/website/common/script/content/hatching-potions.js +++ b/website/common/script/content/hatching-potions.js @@ -272,9 +272,9 @@ each(premium, (pot, key) => { notes: t('hatchingPotionNotes', { potText: pot.text, }), - _addlNotes: t('eventAvailability', { + _addlNotes: pot._season ? t('eventAvailability', { date: t(`dateEnd${pot._season}`), - }), + }) : null, premium: true, limited: false, canBuy () { @@ -290,9 +290,9 @@ each(wacky, (pot, key) => { notes: t('hatchingPotionNotes', { potText: pot.text, }), - _addlNotes: t('eventAvailability', { + _addlNotes: pot._seasont && pot._season !== '_PENDING_' ? ('eventAvailability', { date: t(`dateEnd${pot._season}`), - }), + }) : null, premium: false, limited: true, wacky: true, diff --git a/website/common/script/libs/getItemInfo.js b/website/common/script/libs/getItemInfo.js index 9976ada32f..11cf89384c 100644 --- a/website/common/script/libs/getItemInfo.js +++ b/website/common/script/libs/getItemInfo.js @@ -72,7 +72,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang itemInfo = { key: item.key, text: i18n.t('potion', { potionType: item.text(language) }), - notes: item.notes(language), + notes: item._addlNotes ? item.notes(language) : null, class: `Pet_HatchingPotion_${item.key}`, value: item.value, locked: false, @@ -86,7 +86,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang itemInfo = { key: item.key, text: i18n.t('potion', { potionType: item.text(language) }), - notes: `${item.notes(language)} ${item._addlNotes(language)}`, + notes: item._addlNotes ? `${item.notes(language)} ${item._addlNotes(language)}` : null, class: `Pet_HatchingPotion_${item.key}`, value: item.value, locked: false,