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

Commit

Permalink
Update Real Account to Gaming account for GB Residents (#6821)
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-deriv authored Oct 3, 2021
1 parent 1276bd2 commit 0f0e2a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/javascript/app/pages/user/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,20 @@ const Accounts = (() => {

const populateNewAccounts = (upgrade_info) => {
const table_headers = TableHeaders.get();
const residence = Client.get('residence');

upgrade_info.type.forEach((new_account_type, index) => {
const getAccountTitle = () => {

if (new_account_type === 'financial') {
return localize('Financial Account');
}
if (upgrade_info.can_upgrade_to[index] === 'malta') {
return localize('Gaming Account');
}
if (residence === 'gb' && upgrade_info.can_upgrade_to[index] === 'iom'){
return localize('Gaming Account');
}

return localize('Real Account');
};
Expand Down

0 comments on commit 0f0e2a7

Please sign in to comment.