Skip to content

Commit

Permalink
Merge pull request #619 from Travelport-Ukraine/hotfix-fare-basis-code
Browse files Browse the repository at this point in the history
hotfix-fare-basis-code: airPricingInfo condition check update
  • Loading branch information
dchertousov authored Mar 1, 2023
2 parents 2de2cfe + 37891e6 commit c35e835
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uapi-json",
"version": "1.14.7",
"version": "1.14.8",
"description": "Travelport Universal API",
"main": "src/",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/utils/form-fare-basis-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = (airPricingInfo, coupon) => {
? `${coupon.FareBasis}/${couponTicketDesignator}`
: coupon.FareBasis;

if (!airPricingInfo) {
if (!airPricingInfo || !airPricingInfo['air:FareInfo']) {
return couponFareBasisResult;
}

Expand Down

0 comments on commit c35e835

Please sign in to comment.