From 0f0e2a78b036a658459bf627704e3400125656a0 Mon Sep 17 00:00:00 2001 From: prince-deriv <82309725+prince-deriv@users.noreply.github.com> Date: Sun, 3 Oct 2021 18:40:10 +0400 Subject: [PATCH] Update Real Account to Gaming account for GB Residents (#6821) --- src/javascript/app/pages/user/accounts.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/javascript/app/pages/user/accounts.js b/src/javascript/app/pages/user/accounts.js index d89fe1533825a..9a03338c93677 100644 --- a/src/javascript/app/pages/user/accounts.js +++ b/src/javascript/app/pages/user/accounts.js @@ -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'); };