diff --git a/public/js/main.js b/public/js/main.js index f300927..36598ec 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -123,7 +123,7 @@ const app = new Vue({ let steps_left = step+1; for(let e in this.journey_data.main){ if(this.journey_data.main[e].dateRange && (this.journey_data.main[e].dateRange[0]-(new Date(0))) != 0){ - let cd = (this.journey_data.main[e].dateRange[1]-this.journey_data.main[e].dateRange[0])/(1000*60*60*24); + let cd = ((this.journey_data.main[e].dateRange[1]-this.journey_data.main[e].dateRange[0])/(1000*60*60*24))+1; if(cd>=steps_left){ return {day: steps_left, section:e,start: (steps_left==1), end: (steps_left==cd)}; }else{