Skip to content

Commit

Permalink
fix cookie policy behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Ridel1e committed Jul 23, 2022
1 parent 7343276 commit f16b5f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ import { startAppTicks } from './common/streams/appTick';
import { AppLoadingProvider, SettingsProvider } from './context';
import { LanguageProvider } from './i18n/i18n';
import { openCatalystF9Notification } from './services/notifications/CalalystF9/CalalystF9';
import { openCookiePolicy } from './services/notifications/CookiePolicy/CookiePolicy';

const Application = () => {
useEffect(() => {
openCookiePolicy();
setTimeout(() => openCatalystF9Notification(), 10_000);
}, []);

Expand Down
3 changes: 3 additions & 0 deletions src/components/common/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { useApplicationSettings, useAppLoadingState } from '../../../context';
import { useSelectedNetwork } from '../../../gateway/common/network';
import { useBodyClass } from '../../../hooks/useBodyClass';
import { useMetaThemeColor } from '../../../hooks/useMetaThemeColor';
import { openCookiePolicy } from '../../../services/notifications/CookiePolicy/CookiePolicy';
import { Header } from '../../Header/Header';
import { NetworkHeight } from '../../NetworkHeight/NetworkHeight';
import { SocialLinks } from '../../SocialLinks/SocialLinks';
Expand Down Expand Up @@ -57,6 +58,8 @@ const _Layout: FC<PropsWithChildren<{ className?: string }>> = ({
!isConfirmed && panalytics.closeKya();
},
});
} else {
openCookiePolicy();
}
}, [isKYAAccepted]);

Expand Down

0 comments on commit f16b5f6

Please sign in to comment.