Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,11 @@ const ProductView = forwardRef(
// See wishlist_primary_action for example.
if (isValidResponse) {
// Show bonus product modal first if there are bonus items
if (newBonusItems?.length > 0) {
// TODO: rule based promotions will be handled after Product Discovery team delivers TD-0262468
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just say that we dont support rule base yet, this will go out to devlop and the release before that TD is delivered most likely

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also any test updates or anything we can do here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ddiazccrz Sure updated the comment and added a test

if (
newBonusItems?.length > 0 &&
newBonusItems.some((item) => item.bonusProducts)
) {
// Update bonusProducts list with the new bonus items
addBonusProducts(newBonusItems)
onBonusProductModalOpen({
Expand Down
Loading