-
Notifications
You must be signed in to change notification settings - Fork 58
Fares V2 Support #1461
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
base: dev
Are you sure you want to change the base?
Fares V2 Support #1461
Conversation
# Conflicts: # package.json # yarn.lock
Repair Percy Tests After Geocoder Changes
This is now ready for review @daniel-heppner-ibigroup |
# Conflicts: # yarn.lock
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.
This looks good! I only have the one comment, of course on the ts-expect-error. Please fix!
|
||
if ( | ||
// Display special message if there are multiple fare products, but no primary product configured | ||
// @ts-expect-error TS seems to not understand the optional? |
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.
TS understands the optional, but you you can't use a >
operator on undefined because it needs two numbers. So you need to provide a default value for leg.fareProducts?.length
by using ?? 0
or something. Or do a null check some other way.
Description:
Uses new core utils functions to support new Fares V2 Table and display
PR Checklist: