Skip to content

Commit

Permalink
fix: 🚑 patch to fix sign up in english language (binary-com#7307)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitra-deriv authored Dec 21, 2022
1 parent 324fdf5 commit c5b7da4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/javascript/static/pages/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ const Home = (() => {
});
});

const language = getLanguage().toLowerCase().replace(/_/g, '-');
let language = getLanguage().toLowerCase().replace(/_/g, '-');
const explore_deriv_btn = getElementById('explore-deriv');
const create_a_demo_account_btn = getElementById('create-a-demo-account');
if (getLanguage() === 'EN') {
language = '';
}

explore_deriv_btn.addEventListener('click', () => window.open(`https://deriv.com/${language}/`,'_self'));
create_a_demo_account_btn.addEventListener('click', () => window.open(`https://deriv.com/${language}/signup/`,'_self'));
Expand Down

0 comments on commit c5b7da4

Please sign in to comment.