fix(events): short-circuit when no active event

This commit is contained in:
Sabe Jones
2020-12-11 16:36:19 -06:00
parent 26940e4054
commit bcae464955
3 changed files with 435 additions and 435 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ const bundles = {
'penguin',
],
canBuy () {
return CURRENT_EVENT.season === 'winter';
return CURRENT_EVENT && CURRENT_EVENT.season === 'winter';
},
type: 'quests',
value: 7,
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -263,7 +263,7 @@ const quests = {
},
evilsanta: {
canBuy () {
return CURRENT_EVENT.season === 'winter';
return CURRENT_EVENT && CURRENT_EVENT.season === 'winter';
},
event: EVENTS.winter2021,
text: t('questEvilSantaText'),
@@ -291,7 +291,7 @@ const quests = {
},
evilsanta2: {
canBuy () {
return CURRENT_EVENT.season === 'winter';
return CURRENT_EVENT && CURRENT_EVENT.season === 'winter';
},
event: EVENTS.winter2021,
text: t('questEvilSanta2Text'),