fix(countdowns): more-than-a-month edge case
This commit is contained in:
@@ -76,7 +76,7 @@ export default {
|
||||
this.limitedString = this.$t('noLongerAvailable');
|
||||
this.availabilityClass = 'expired';
|
||||
this.cancelAutoUpdate();
|
||||
} else if (diffDuration.days() > 0) {
|
||||
} else if (diffDuration.days() > 0 || diffDuration.months() > 0) {
|
||||
this.limitedString = this.$t('limitedAvailabilityDays', {
|
||||
days: moment(this.endDate).diff(moment(), 'days'),
|
||||
hours: diffDuration.hours(),
|
||||
|
||||
@@ -208,7 +208,7 @@ export default {
|
||||
|
||||
if (diffDuration.asSeconds() <= 0) {
|
||||
this.limitedString = this.$t('noLongerAvailable');
|
||||
} else if (diffDuration.days() > 0) {
|
||||
} else if (diffDuration.days() > 0 || diffDuration.months() > 0) {
|
||||
this.limitedString = this.$t('limitedAvailabilityDays', {
|
||||
days: moment(this.quest.event.end).diff(moment(), 'days'),
|
||||
hours: diffDuration.hours(),
|
||||
|
||||
@@ -344,7 +344,7 @@ export default {
|
||||
|
||||
if (diffDuration.asSeconds() <= 0) {
|
||||
this.limitedString = this.$t('noLongerAvailable');
|
||||
} else if (diffDuration.days() > 0) {
|
||||
} else if (diffDuration.days() > 0 || diffDuration.months() > 0) {
|
||||
this.limitedString = this.$t('limitedAvailabilityDays', {
|
||||
days: moment(this.item.event.end).diff(moment(), 'days'),
|
||||
hours: diffDuration.hours(),
|
||||
|
||||
Reference in New Issue
Block a user