Skip to content

Commit

Permalink
fix(new-price-priceCalculator): in case of a non multiple product, ke…
Browse files Browse the repository at this point in the history
…ep user at offer presenter step
  • Loading branch information
guilhermespopolin committed Nov 8, 2024
1 parent 0edfaa2 commit 51019c4
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,15 +202,16 @@ function OfferSummary() {
datadogRum.addAction(BankSigneringEvent.Requested)
}
}

// Make sure user views "added to cart" notification and/or bundle discount banner
window.scrollTo({ top: 0, behavior: 'instant' })
setAddedOffer(selectedOffer)
},
})

const handleAddToCart: MouseEventHandler = async (event) => {
event.preventDefault()
await addToCart(selectedOffer.id)
// Make sure user views "added to cart" notification and/or bundle discount banner
window.scrollTo({ top: 0, behavior: 'instant' })
setAddedOffer(selectedOffer)
}

const productData = useProductData()
Expand Down

0 comments on commit 51019c4

Please sign in to comment.