-
Notifications
You must be signed in to change notification settings - Fork 3.9k
fix: logic for waypoint validation #26591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
109726e
f7d7796
9b1e693
4bc3a23
2d34d98
d6de602
ac08f33
4304851
a8dda33
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -533,7 +533,7 @@ function createDistanceRequest(report, participant, comment, created, transactio | |
| createdChatReportActionID, | ||
| createdIOUReportActionID, | ||
| reportPreviewReportActionID: reportPreviewAction.reportActionID, | ||
| waypoints: JSON.stringify(transaction.comment.waypoints), | ||
| waypoints: JSON.stringify(TransactionUtils.getValidWaypoints(transaction.comment.waypoints, true)), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think 2nd param is needed.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replied here
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we need this logic to reorganize indices to be consecutive (i.e. we need to pass
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, I meant to reorganize always without needing to pass 2nd param but later I realized it should be conditional |
||
| created, | ||
| }, | ||
| onyxData, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hasWaypointValidAddressis better name