We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6cef64d + 6b33280 commit 05cabe7Copy full SHA for 05cabe7
1 file changed
src/get-rates-with-shipment-details/format-response.ts
@@ -240,9 +240,9 @@ function formatCustoms(
240
customs: Response.InternationalShipmentOptions
241
): GetRatesWithShipmentDetailsTypes.Result["customs"] | null {
242
return {
243
- contents: customs.contents,
244
- nonDelivery: customs.non_delivery,
245
- customsItems: customs.customs_items
+ contents: customs?.contents,
+ nonDelivery: customs?.non_delivery,
+ customsItems: customs?.customs_items
246
? formatCustomsItems(customs.customs_items)
247
: null,
248
};
0 commit comments