fix(events): short-circuit when no active event
This commit is contained in:
@@ -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
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user