cleanup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
choelzl 2021-07-16 19:14:45 +02:00
parent 656d93fbbe
commit 7f9050d31d
Signed by: sora
GPG Key ID: A362EA0491E2EEA0

View File

@ -123,7 +123,7 @@ const app = new Vue({
let steps_left = step+1; let steps_left = step+1;
for(let e in this.journey_data.main){ 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){ 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){ if(cd>=steps_left){
return {day: steps_left, section:e,start: (steps_left==1), end: (steps_left==cd)}; return {day: steps_left, section:e,start: (steps_left==1), end: (steps_left==cd)};
}else{ }else{