Skip to content

Commit

Permalink
return default delivery option
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSimpleDev committed May 7, 2024
1 parent 18e4ad4 commit 4ea324c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 2-copy-of-code/lesson-15/data/deliveryOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ export function getDeliveryOption(deliveryOptionId) {
}
});

return deliveryOption;
return deliveryOption || deliveryOptions[0];
}
2 changes: 1 addition & 1 deletion 2-copy-of-code/lesson-16/data/deliveryOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ export function getDeliveryOption(deliveryOptionId) {
}
});

return deliveryOption;
return deliveryOption || deliveryOptions[0];
}
2 changes: 1 addition & 1 deletion 2-copy-of-code/lesson-17/data/deliveryOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ export function getDeliveryOption(deliveryOptionId) {
}
});

return deliveryOption;
return deliveryOption || deliveryOptions[0];
}
2 changes: 1 addition & 1 deletion 2-copy-of-code/lesson-18/data/deliveryOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ export function getDeliveryOption(deliveryOptionId) {
}
});

return deliveryOption;
return deliveryOption || deliveryOptions[0];
}

0 comments on commit 4ea324c

Please sign in to comment.