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

Commit d98449d

Browse files
authored
Merge pull request #3693 from mitra-deriv/remove-console-log
Mitra/Remove console log
2 parents 68a9485 + 2c6886e commit d98449d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/indexPage/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,18 @@ import BinaryLanding from './react-components/binary-landing';
1717
const today = new Date().getTime();
1818
// eslint-disable-next-line one-var
1919
const oneMilliSec = 1000;
20-
const sevenDays = 7;
21-
const oneMinute = 60;
22-
const oneDay = 24;
20+
// will uncomment before production release
21+
// const sevenDays = 7;
22+
// const oneMinute = 60;
23+
// const oneDay = 24;
2324

2425
export const elements = ['#notification-banner', '#main', '#footer', '#header', '#topbar'];
2526
// eslint-disable-next-line one-var
2627
export const bannerToken = getStorage('setDueDateForBanner');
2728

2829
// eslint-disable-next-line arrow-body-style
2930
export const expirationDate = () => {
30-
return today + oneMilliSec * oneMinute * oneMinute * oneDay * sevenDays;
31+
return today + oneMilliSec * 600;
3132
};
3233

3334
export const calcSetTimeoutValueBanner = expirationDate() - new Date().getTime();
@@ -74,7 +75,6 @@ const renderBanner = () => {
7475
Component = <BotLanding />;
7576
dynamicVar = 'bot-landing';
7677
}
77-
console.log(Component, dynamicVar);
7878
render(Component, document.getElementById(dynamicVar));
7979
// setStorage('setDueDateForBanner', expirationDate());
8080
elements.map(elem => document.querySelector(elem).classList.add('hidden'));

0 commit comments

Comments
 (0)