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

Commit 7e2d9d4

Browse files
authored
add console for cookie (#7224)
1 parent 3c3b95c commit 7e2d9d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/javascript/app/common/redirect_banner.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ const RedirectBanner = (() => {
1111
BinarySocket.wait('authorize', 'website_status', 'landing_company').then(() => {
1212

1313
const eu_country = isEuCountrySelected(Client.get('residence')) || isEuCountrySelected(State.getResponse('website_status.clients_country'));
14+
// eslint-disable-next-line no-console
15+
console.log(Cookies.get('row-lp-visited'), 'row-lp-visited');
1416
if (eu_country) {
1517
handleRedirect();
1618
} else if (!Cookies.get('row-lp-visited')) {
17-
window.location.href = '/binary-to-deriv/';
19+
handleRowRedirect();
1820
}
1921
});
2022

@@ -23,6 +25,9 @@ const RedirectBanner = (() => {
2325
const handleRedirect = () => {
2426
window.location.href = '/move-to-deriv/';
2527
};
28+
const handleRowRedirect = () => {
29+
window.location.href = '/binary-to-deriv/';
30+
};
2631

2732
const loginOnLoad = () => {
2833
BinarySocket.wait('authorize', 'website_status', 'landing_company').then(() => {

0 commit comments

Comments
 (0)