From 19bfa137999d2c341e2f99f1421d39a340f4917b Mon Sep 17 00:00:00 2001 From: anjana-bl Date: Mon, 29 Apr 2024 01:06:21 +0530 Subject: [PATCH] Update opps-coupon-codes.service.ts --- .../opps/root/coupon-codes/opps-coupon-codes.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integration-libs/opps/root/coupon-codes/opps-coupon-codes.service.ts b/integration-libs/opps/root/coupon-codes/opps-coupon-codes.service.ts index 228a19cdd32..3edb7eaa0f1 100644 --- a/integration-libs/opps/root/coupon-codes/opps-coupon-codes.service.ts +++ b/integration-libs/opps/root/coupon-codes/opps-coupon-codes.service.ts @@ -15,7 +15,7 @@ export class OppsCouponCodesService { protected localStorageKey = this.config.opps?.couponcodes?.localStorageKey ?? ''; - saveUrlCouponCodes() { + saveUrlCouponCodes(): void { const urlParam = this.config.opps?.couponcodes?.urlParameter ?? ''; const url = this.winRef.location.href ?? ''; const queryParams = new URLSearchParams(url.substring(url.indexOf('?'))); @@ -24,7 +24,7 @@ export class OppsCouponCodesService { this.setCouponCodes(oppsCoupon); } } - setCouponCodes(couponCodes: string) { + setCouponCodes(couponCodes: string): void { if (this.localStorageKey && couponCodes) { this.winRef.localStorage?.setItem(this.localStorageKey, couponCodes); } @@ -34,9 +34,9 @@ export class OppsCouponCodesService { return this.winRef.localStorage?.getItem(this.localStorageKey); } } - clearCouponCodes() { + clearCouponCodes(): void { if (this.localStorageKey) { - return this.winRef.localStorage?.removeItem(this.localStorageKey); + this.winRef.localStorage?.removeItem(this.localStorageKey); } } }