Skip to content

Commit

Permalink
fix(app/checkout): updating points applier max on checkout with disco…
Browse files Browse the repository at this point in the history
…unts
  • Loading branch information
leomp12 committed Feb 12, 2025
1 parent b25eb7a commit 3c36e1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@
<template #amount-custom>
<points-applier
v-if="enabledCheckoutStep > 1"
:key="maxPointsAmount"
class="checkout__loyalty-points"
:points-applied.sync="loyaltyPointsApplied"
:points-amount.sync="loyaltyPointsAmount"
Expand Down
2 changes: 1 addition & 1 deletion @ecomplus/storefront-app/src/components/js/EcCheckout.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export default {
paymentAmount () {
return {
...this.amount,
total: this.amount.total - this.loyaltyPointsAmount
total: Math.max(this.amount.total - this.loyaltyPointsAmount, 0)
}
},

Expand Down

0 comments on commit 3c36e1b

Please sign in to comment.