Skip to content

Incorrect status is shown when ETA end date has already passed#1

Open
TuxToaster wants to merge 1 commit intoTheSeg:mainfrom
TuxToaster:main
Open

Incorrect status is shown when ETA end date has already passed#1
TuxToaster wants to merge 1 commit intoTheSeg:mainfrom
TuxToaster:main

Conversation

@TuxToaster
Copy link
Copy Markdown

Due to getDaysToDelivery using Math.abs when calculating the time difference, the status shows an incorrectly increasing value if the delivery has gone beyond the ETA end date (e.g. for a delivery that should have happened two days ago on September 13th, it currently shows "is estimated to be delivered to dealer in 2 days."

This change removes the call to Math.abs, and the resulting status for the above now simply shows as "In Transit".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants