Skip to content

Commit

Permalink
remove logs and make fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
dskamiotis committed Sep 19, 2023
1 parent 160cb60 commit 3dcced2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 3dcced2

Please sign in to comment.