diff --git a/frontend/src/components/DecayInformation.vue b/frontend/src/components/DecayInformation.vue index 3b7a939c5..5179b9df1 100644 --- a/frontend/src/components/DecayInformation.vue +++ b/frontend/src/components/DecayInformation.vue @@ -39,20 +39,13 @@
{{ $t('decay.since_introduction') }}
- {{ getDuration }} - - {{ getDuration.years }} {{ $t('decay.year') }}, - - {{ getDuration.months }} {{ $t('decay.months') }}, - - {{ getDuration.days }} {{ $t('decay.days') }}, - {{ getDuration.hours }} {{ $t('decay.hours') }}, - - {{ getDuration.minutes }} {{ $t('decay.minutes') }}, - - - {{ getDuration.seconds }} {{ $t('decay.seconds') }} - + + {{ duration.years }} {{ $t('decay.year') }}, + {{ duration.months }} {{ $t('decay.months') }}, + {{ duration.days }} {{ $t('decay.days') }}, + {{ duration.hours }} {{ $t('decay.hours') }}, + {{ duration.minutes }} {{ $t('decay.minutes') }}, + {{ duration.seconds }} {{ $t('decay.seconds') }}
@@ -80,10 +73,10 @@ export default { ? ' - Startblock Decay am: ' + this.$d(this.$moment.unix(this.decay.decay_start_block)) : '' }, - getDuration() { + duration() { const startDate = this.$moment.unix(new Date(this.decay.decay_start)) const endDate = this.$moment.unix(new Date(this.decay.decay_end)) - const diff = this.$moment.duration(startDate.diff(endDate)) + const diff = this.$moment.duration(endDate.diff(startDate)) return diff._data }, },