Skip to content

Commit

Permalink
fix: delete 'add or manage account' by checking 'filtered_remaining_r…
Browse files Browse the repository at this point in the history
…eal_accounts' length
  • Loading branch information
sergei-deriv committed Feb 21, 2023
1 parent ad5e534 commit e0b1549
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,8 @@ const AccountSwitcher = props => {
</Button>
</div>
))}
{(can_manage_account_multi || !props.has_active_real_account) && (
{(can_manage_account_multi ||
(!props.has_active_real_account && filtered_remaining_real_accounts?.length === 0)) && (
<Button
className='acc-switcher__btn'
secondary
Expand Down

0 comments on commit e0b1549

Please sign in to comment.