mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Fix 'Remove account' in Account Options menu (#8748)
The 'Remove account' button in the Account Options menu was broken. Clicking it would crash the UI. It now correctly opens the 'Remove Account' modal.
This commit is contained in:
parent
456684ee7d
commit
799536c35f
@ -118,7 +118,7 @@ export default function AccountOptionsMenu ({ anchorElement, onClose }) {
|
||||
? (
|
||||
<MenuItem
|
||||
onClick={() => {
|
||||
dispatch(showModal({ name: 'CONFIRM_REMOVE_ACCOUNT', selectedIdentity }))
|
||||
dispatch(showModal({ name: 'CONFIRM_REMOVE_ACCOUNT', identity: selectedIdentity }))
|
||||
onClose()
|
||||
}}
|
||||
iconClassName="fas fa-trash-alt"
|
||||
|
Loading…
Reference in New Issue
Block a user