mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
ref issue #11794 - Add error check in _addlNotes field.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user