fix(potions): call out limited time

This commit is contained in:
Sabe Jones
2020-04-10 15:15:23 -05:00
parent 39765895ee
commit 9c6c90a2e9
6 changed files with 27 additions and 8 deletions

View File

@@ -3,6 +3,9 @@ import defaults from 'lodash/defaults';
import each from 'lodash/each';
import moment from 'moment';
import t from './translation';
import {
EVENTS,
} from './constants';
function hasQuestAchievementFunction (key) {
return user => user.achievements.quests
@@ -70,6 +73,7 @@ const premium = {
value: 2,
text: t('hatchingPotionShimmer'),
limited: true,
event: EVENTS.spring2020,
_addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateEndMarch'),
previousDate: t('marchYYYY', { year: 2018 }),
@@ -205,6 +209,7 @@ const premium = {
value: 2,
text: t('hatchingPotionCelestial'),
limited: true,
event: EVENTS.spring2020,
_addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateEndMarch'),
previousDate: t('marchYYYY', { year: 2019 }),
@@ -271,6 +276,7 @@ const premium = {
value: 2,
text: t('hatchingPotionBirchBark'),
limited: true,
event: EVENTS.spring2020,
canBuy () {
return moment().isBefore('2020-05-02');
},
@@ -284,6 +290,7 @@ const wacky = {
Veggie: {
text: t('hatchingPotionVeggie'),
limited: true,
event: EVENTS.spring2020,
_addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateEndMarch'),
previousDate: t('marchYYYY', { year: 2019 }),