ref issue #11794 - Add error check in _addlNotes field.

This commit is contained in:
MynahMarie
2020-02-02 14:56:20 +02:00
parent 81c58d2122
commit 3045be3ddf
2 changed files with 6 additions and 6 deletions

View File

@@ -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,