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

Prod:Prince/Update Real Account to Gaming account for GB Residents #6821

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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