Skip to content

Commit

Permalink
Merge 7ca4746 into 5c38dd3
Browse files Browse the repository at this point in the history
  • Loading branch information
fkloes committed Apr 1, 2019
2 parents 5c38dd3 + 7ca4746 commit e185d80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/commerce/cart/subscriptions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function cart(subscribe) {
const [, , coupon] = action.params.pathname.split('/');

if (coupon) {
dispatch(addCouponsToCart([coupon]));
dispatch(addCouponsToCart([coupon.split('?')[0]]));
}

return null;
Expand Down
2 changes: 1 addition & 1 deletion libraries/commerce/cart/subscriptions/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('Cart subscriptions', () => {
const coupon = '10PERCENTOFF';
const action = {
params: {
pathname: `/cart_add_coupon/${coupon}`,
pathname: `/cart_add_coupon/${coupon}?get=parameter`,
},
};

Expand Down

0 comments on commit e185d80

Please sign in to comment.