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

Commit

Permalink
fix: 🚑 patch to fix sign up in english language (#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

1 comment on commit c5b7da4

@vercel
Copy link

@vercel vercel bot commented on c5b7da4 Dec 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

binary-static – ./

binary-static.binary.sx
binary-static-git-master.binary.sx

Please sign in to comment.