Skip to content

Commit

Permalink
Amina/ fix: mf_list (#7516)
Browse files Browse the repository at this point in the history
* fix: mf_list

* chore: trigger build
  • Loading branch information
amina-deriv committed Feb 7, 2023
1 parent e96eb1b commit b34a9e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ const AccountSwitcher = props => {
if (cfd_demo_currency !== account_total_balance_currency) {
getCurrentExchangeRate(cfd_demo_currency, setExchangedRateCfdDemo);
}
if (props.is_low_risk || props.is_high_risk || props.is_eu) {
if (props.is_low_risk || props.is_high_risk) {
const real_accounts = getSortedAccountList(props.account_list, props.accounts).filter(
account => !account.is_virtual && account.loginid.startsWith('CR')
);
setFilteredRealAccounts(real_accounts);
const remaining_real_accounts = getRemainingRealAccounts().filter(account => account === 'svg');
setFilteredRemainingRealAccounts(remaining_real_accounts);
} else if (props.show_eu_related_content) {
} else if (props.is_eu) {
const real_accounts = getSortedAccountList(props.account_list, props.accounts).filter(
account => !account.is_virtual && account.loginid.startsWith('MF')
);
Expand Down

0 comments on commit b34a9e9

Please sign in to comment.