Skip to content

Commit 62b0b19

Browse files
committed
Reduce to 2 days the date range when displaying the trip from a control
1 parent f0afd38 commit 62b0b19

File tree

1 file changed

+2
-2
lines changed
  • frontend/src/features/Vessel/components/VesselSidebar/components/Controls

1 file changed

+2
-2
lines changed

frontend/src/features/Vessel/components/VesselSidebar/components/Controls/Control.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export function Control({ control, isLastItem }: ControlProps) {
4444

4545
const openTripForControl = async () => {
4646
const controlDate = customDayjs(control.actionDatetimeUtc)
47-
const fromDate = controlDate.subtract(2, 'days')
48-
const toDate = controlDate.add(2, 'days')
47+
const fromDate = controlDate.subtract(1, 'day')
48+
const toDate = controlDate.add(1, 'day')
4949
const trackRequest: TrackRequestCustom = {
5050
afterDateTime: fromDate.toDate(),
5151
beforeDateTime: toDate.toDate(),

0 commit comments

Comments
 (0)