diff --git a/public/js/main.js b/public/js/main.js index 7c2ce3f..a68f61f 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -204,7 +204,7 @@ const app = new Vue({ }, total_date: function(){ if(this.journey_data.main.length==0) return ''; - return `${this.format_date(this.journey_data.main[this.journey_data.main.length-1].dateRange[0])} - ${this.format_date(this.journey_data.main[0].dateRange[0])}`; + return `${this.format_date(this.journey_data.main[0].dateRange[0])} - ${this.format_date(this.journey_data.main[this.journey_data.main.length-1].dateRange[0])}`; }, update_date: function(idx){ let dateRange = this.journey_data.main[idx].dateRange;