Skip to content

Commit

Permalink
fix: add missing nullable condition
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejak committed Oct 9, 2024
1 parent 956bfd5 commit 72ce238
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const mockAirlineInitiatedChange: AirlineInitiatedChange = {
penalty_amount: '100.00',
allowed: true,
},
refund_before_departure: null,
},
destination_type: 'airport',
origin_type: 'airport',
Expand Down Expand Up @@ -146,6 +147,7 @@ export const mockAirlineInitiatedChange: AirlineInitiatedChange = {
penalty_amount: '100.00',
allowed: true,
},
refund_before_departure: null,
},
destination_type: 'airport',
origin_type: 'airport',
Expand Down
1 change: 1 addition & 0 deletions src/booking/Offers/mockOffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export const mockOffer: Offer = {
penalty_amount: '100.00',
allowed: true,
},
refund_before_departure: null,
advance_seat_selection: false,
priority_boarding: false,
priority_check_in: false,
Expand Down
1 change: 1 addition & 0 deletions src/booking/Offers/mockPartialOffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export const mockPartialOffer: Offer = {
penalty_amount: '100.00',
allowed: true,
},
refund_before_departure: null,
advance_seat_selection: false,
priority_boarding: false,
priority_check_in: false,
Expand Down
7 changes: 6 additions & 1 deletion src/booking/Orders/mockOrders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ export const mockOrder: Order = {
penalty_amount: '100.00',
allowed: true,
},
refund_before_departure: null,
},
},
],
Expand Down Expand Up @@ -419,6 +420,7 @@ export const mockOnHoldOrders: Order[] = [
},
conditions: {
change_before_departure: null,
refund_before_departure: null,
},
},
],
Expand Down Expand Up @@ -597,7 +599,10 @@ export const mockOnHoldOrders: Order[] = [
iata_code: 'MIA',
},
},
conditions: { change_before_departure: null },
conditions: {
change_before_departure: null,
refund_before_departure: null,
},
},
],
services: [],
Expand Down

0 comments on commit 72ce238

Please sign in to comment.