From 342b883c73c08227fec95484c01b84c19cc0b626 Mon Sep 17 00:00:00 2001 From: Zog Date: Mon, 14 May 2018 11:41:52 +0200 Subject: Refs #6998: Fix JS specs --- app/javascript/vehicle_journeys/reducers/vehicleJourneys.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'app') diff --git a/app/javascript/vehicle_journeys/reducers/vehicleJourneys.js b/app/javascript/vehicle_journeys/reducers/vehicleJourneys.js index ecb58e2ea..4931ab46e 100644 --- a/app/javascript/vehicle_journeys/reducers/vehicleJourneys.js +++ b/app/javascript/vehicle_journeys/reducers/vehicleJourneys.js @@ -66,10 +66,6 @@ const vehicleJourney= (state = {}, action, keep) => { newVjas.departure_day_offset = 1 newVjas.arrival_day_offset = 1 } - if(current_time.hour + offsetHours < 0){ - newVjas.departure_day_offset = -1 - newVjas.arrival_day_offset = -1 - } } else{ newVjas = { -- cgit v1.2.3