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

Commit

Permalink
fix: replace.all console log error in track js (#6106)
Browse files Browse the repository at this point in the history
* fix: track js issue

* fix: remove unwanted condition
  • Loading branch information
mayuran-deriv authored Dec 6, 2023
1 parent 1ea40ce commit 7a87ed2
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/pages/signup-success/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ const SignupSuccess = () => {
const userEmail = Cookies.get('user_email')
const locale = getLanguage()

setRegisteredEmail(userEmail?.replaceAll(' ', '+'))
if (!userEmail) {
if (locale !== 'en') navigate(`/${locale}/`, { replace: true })
else {
navigate('/', { replace: true })
}
} else {
setRegisteredEmail(userEmail.replaceAll(' ', '+'))
Analytics?.trackEvent('ce_virtual_signup_form', {
action: 'email_confirmation_sent',
...analyticsData,
Expand Down
2 changes: 1 addition & 1 deletion src/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -4544,4 +4544,4 @@
"-1165835520": "Mitarbeiter",
"-651384976": "Nationalitäten",
"-1033881248": "Sehen Sie unsere offenen Stellen"
}
}
2 changes: 1 addition & 1 deletion src/translations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -4544,4 +4544,4 @@
"-1165835520": "직원",
"-651384976": "출신 국적",
"-1033881248": "채용 정보 보기"
}
}
2 changes: 1 addition & 1 deletion src/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -4544,4 +4544,4 @@
"-1165835520": "сотрудников",
"-651384976": "национальностей",
"-1033881248": "Смотреть вакансии"
}
}
2 changes: 1 addition & 1 deletion src/translations/si.json
Original file line number Diff line number Diff line change
Expand Up @@ -4544,4 +4544,4 @@
"-1165835520": "සේවකයින්",
"-651384976": "ජාතීන්",
"-1033881248": "අපගේ විවෘත ස්ථාන බලන්න"
}
}
2 changes: 1 addition & 1 deletion src/translations/sw.json
Original file line number Diff line number Diff line change
Expand Up @@ -4544,4 +4544,4 @@
"-1165835520": "wafanyakazi",
"-651384976": "mataifa",
"-1033881248": "Tazama nafasi zetu zilizo wazi"
}
}
2 changes: 1 addition & 1 deletion src/translations/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -4544,4 +4544,4 @@
"-1165835520": "雇员",
"-651384976": "国籍",
"-1033881248": "查看空缺职位"
}
}
2 changes: 1 addition & 1 deletion src/translations/zh_tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -4544,4 +4544,4 @@
"-1165835520": "僱員",
"-651384976": "國籍",
"-1033881248": "查看空缺職位"
}
}

1 comment on commit 7a87ed2

@vercel
Copy link

@vercel vercel bot commented on 7a87ed2 Dec 6, 2023

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:

deriv-com – ./

deriv-com-git-master.binary.sx
deriv-com.binary.sx

Please sign in to comment.