Skip to content

Commit

Permalink
fix usage of null coupon in hidden retreat (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
RignonNoel authored Feb 5, 2021
1 parent ebefc89 commit e7e7224
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ export class HiddenRetreatComponent implements OnInit, OnDestroy {
subscribe() {

this.cartService.setMetadata(this.retreat, this.generateMetaData());
this.cartService.addCoupon(this.coupon);
if (this.coupon) {
this.cartService.addCoupon(this.coupon);
}
if (this.authenticationService.isAuthenticated()) {
this._rightPanelService.openProductSelectorPanel(this.retreat);
} else {
Expand Down

0 comments on commit e7e7224

Please sign in to comment.