Skip to content

Commit

Permalink
fix(payment): incorrect couponCode success message
Browse files Browse the repository at this point in the history
  • Loading branch information
royschut authored and ChristiaanScheermeijer committed Feb 7, 2024
1 parent d01d1b7 commit c97c59b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Checkout = () => {

const { offer, offerType, paymentMethods, order, isSubmitting, updateOrder, submitPaymentWithoutDetails, submitPaymentPaypal, submitPaymentStripe } =
useCheckout({
onUpdateOrderSuccess: () => setShowCouponCodeSuccess(true),
onUpdateOrderSuccess: () => !!couponCode && setShowCouponCodeSuccess(true),
onSubmitPaymentWithoutDetailsSuccess: () => navigate(offerType === 'svod' ? welcomeUrl : closeModalUrl, { replace: true }),
onSubmitPaypalPaymentSuccess: (paypalUrl: string) => {
window.location.href = paypalUrl;
Expand Down

0 comments on commit c97c59b

Please sign in to comment.