Skip to content

Commit

Permalink
Merge pull request #45 from suisin-deriv/suisin/WALL1096/add_conditio…
Browse files Browse the repository at this point in the history
…n_to_exclude_ROW_users

Suisin/chore: added is_eu_user checks
  • Loading branch information
suisin-deriv authored Jun 14, 2023
2 parents cf95773 + 1b1c029 commit 57007f3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/core/src/Stores/traders-hub-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,8 @@ export default class TradersHubStore extends BaseStore {
if (account_type === 'demo') {
await switchAccount(account_list.find(acc => acc.is_virtual && !acc.is_disabled)?.loginid);
} else if (account_type === 'real') {
if (!has_active_real_account) {
if (this.is_eu_user) {
this.root_store.ui.openRealAccountSignup('maltainvest');
} else {
this.root_store.ui.openRealAccountSignup('svg');
}
if (!has_active_real_account && this.content_flag === ContentFlag.EU_DEMO) {
this.root_store.ui.openRealAccountSignup('maltainvest');
return;
}
if (prev_real_account_loginid) {
Expand Down

0 comments on commit 57007f3

Please sign in to comment.