Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 312eb14

Browse files
authored
Merge pull request #3664 from rupato-deriv/translations-for-landing-page
Rupato / changed timer to 7days
2 parents 7bbd826 + e9a64b3 commit 312eb14

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/indexPage/index.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,17 @@ import BotLanding from './react-components/bot-landing';
1616
const today = new Date().getTime();
1717
// eslint-disable-next-line one-var
1818
const oneMilliSec = 1000;
19-
// sevenDays = 7,
20-
// fiveMinutes = 300,
21-
// oneMinute = 60,
22-
// oneDay = 24;
19+
const sevenDays = 7;
20+
const oneMinute = 60;
21+
const oneDay = 24;
2322

2423
export const elements = ['#notification-banner', '#main', '#footer', '#header', '#topbar'];
2524
// eslint-disable-next-line one-var
2625
export const bannerToken = getStorage('setDueDateForBanner');
2726

2827
// eslint-disable-next-line arrow-body-style
2928
export const expirationDate = () => {
30-
// return today + oneMilliSec * oneMinute * oneMinute * oneDay * sevenDays;
31-
return today + oneMilliSec * 600;
29+
return today + oneMilliSec * oneMinute * oneMinute * oneDay * sevenDays;
3230
};
3331

3432
export const calcSetTimeoutValueBanner = expirationDate() - new Date().getTime();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy