Skip to content

Commit

Permalink
Fix when there's no item with selected delivery sla
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersontuc committed Dec 22, 2023
1 parent 3a42f94 commit 89a322a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react/fetchers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ export function updateShippingData(
logisticsInfoWithPickupSelected
)

const defaultDeliverySla = firstItemWithSelectedDelivery.selectedSla
const defaultDeliverySla =
firstItemWithSelectedDelivery && firstItemWithSelectedDelivery.selectedSla

const logisticsInfoWithDefaultDeliverySla =
logisticsInfoWithPickupSelected.map((li) => {
Expand Down

0 comments on commit 89a322a

Please sign in to comment.