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

Commit 0f0e2a7

Browse files
authored
Update Real Account to Gaming account for GB Residents (#6821)
1 parent 1276bd2 commit 0f0e2a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/javascript/app/pages/user/accounts.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,20 @@ const Accounts = (() => {
9191

9292
const populateNewAccounts = (upgrade_info) => {
9393
const table_headers = TableHeaders.get();
94+
const residence = Client.get('residence');
95+
9496
upgrade_info.type.forEach((new_account_type, index) => {
9597
const getAccountTitle = () => {
98+
9699
if (new_account_type === 'financial') {
97100
return localize('Financial Account');
98101
}
99102
if (upgrade_info.can_upgrade_to[index] === 'malta') {
100103
return localize('Gaming Account');
101104
}
105+
if (residence === 'gb' && upgrade_info.can_upgrade_to[index] === 'iom'){
106+
return localize('Gaming Account');
107+
}
102108

103109
return localize('Real Account');
104110
};

0 commit comments

Comments
 (0)