From 3dcced2309fcc1ac9a5b5874b2a06e49fd168b4b Mon Sep 17 00:00:00 2001 From: Demetrios Skamiotis Date: Tue, 19 Sep 2023 17:13:20 +0100 Subject: [PATCH] remove logs and make fix eslint --- .../projects/common/modules/commercial/lib/cookie.ts | 1 - .../projects/common/modules/commercial/user-features.ts | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/src/javascripts/projects/common/modules/commercial/lib/cookie.ts b/static/src/javascripts/projects/common/modules/commercial/lib/cookie.ts index 9f26e071215..bceb71eff8e 100644 --- a/static/src/javascripts/projects/common/modules/commercial/lib/cookie.ts +++ b/static/src/javascripts/projects/common/modules/commercial/lib/cookie.ts @@ -12,7 +12,6 @@ const timeInDaysFromNow = (daysFromNow: number): string => { return tmpDate.getTime().toString(); }; -console.log('Test in FRONTEND- '); const cookieIsExpiredOrMissing = (cookieName: string): boolean => { const expiryDateFromCookie = getCookie({ name: cookieName }); if (!expiryDateFromCookie) return true; diff --git a/static/src/javascripts/projects/common/modules/commercial/user-features.ts b/static/src/javascripts/projects/common/modules/commercial/user-features.ts index cbc4b43914d..d9e1f876714 100644 --- a/static/src/javascripts/projects/common/modules/commercial/user-features.ts +++ b/static/src/javascripts/projects/common/modules/commercial/user-features.ts @@ -361,7 +361,8 @@ const fakeOneOffContributor = (): void => { }; const isAdFreeUser = (): boolean => - isDigitalSubscriber() || (adFreeDataIsPresent() && !cookieIsExpiredOrMissing(AD_FREE_USER_COOKIE)); + isDigitalSubscriber() || + (adFreeDataIsPresent() && !cookieIsExpiredOrMissing(AD_FREE_USER_COOKIE)); // Extend the expiry of the contributions cookie by 1 year beyond the date of the contribution const extendContribsCookieExpiry = (): void => {