From 7f9050d31d19c8c168992a4f29d951e1940e7287 Mon Sep 17 00:00:00 2001 From: choelzl Date: Fri, 16 Jul 2021 19:14:45 +0200 Subject: [PATCH] cleanup --- public/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{