diff options
author | Dan <danjm.com@gmail.com> | 2017-09-15 23:09:34 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-09-16 07:19:48 +0800 |
commit | b0f1fba2e5fbde573b46a284285985e63f1a3618 (patch) | |
tree | 3825356bd2d5ae05c2fe1ad66d3f2cfb8f5d99d7 /ui/app/components/dropdowns | |
parent | feb90f2fc478276150fb9e55eec700c46b63ab1c (diff) | |
download | tangerine-wallet-browser-b0f1fba2e5fbde573b46a284285985e63f1a3618.tar.gz tangerine-wallet-browser-b0f1fba2e5fbde573b46a284285985e63f1a3618.tar.zst tangerine-wallet-browser-b0f1fba2e5fbde573b46a284285985e63f1a3618.zip |
Ensures that new accounts are only created from the modal, and not when clicking 'Create New Account'
Diffstat (limited to 'ui/app/components/dropdowns')
-rw-r--r-- | ui/app/components/dropdowns/components/account-dropdowns.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ui/app/components/dropdowns/components/account-dropdowns.js b/ui/app/components/dropdowns/components/account-dropdowns.js index 48354ff94..bb112dcca 100644 --- a/ui/app/components/dropdowns/components/account-dropdowns.js +++ b/ui/app/components/dropdowns/components/account-dropdowns.js @@ -162,11 +162,11 @@ class AccountDropdowns extends Component { DropdownMenuItem, { closeMenu: () => {}, - onClick: () => actions.addNewAccount(), style: Object.assign( {}, menuItemStyles, ), + onClick: () => actions.showNewAccountModal(), }, [ h( @@ -185,9 +185,6 @@ class AccountDropdowns extends Component { fontSize: '16px', lineHeight: '23px', }, - onClick: () => { - actions.showNewAccountModal() - }, }, 'Create Account'), ], ), |