1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 15:50:28 +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:
Mark Stacey 2020-06-05 16:01:06 -03:00 committed by GitHub
parent 456684ee7d
commit 799536c35f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ export default function AccountOptionsMenu ({ anchorElement, onClose }) {
? ( ? (
<MenuItem <MenuItem
onClick={() => { onClick={() => {
dispatch(showModal({ name: 'CONFIRM_REMOVE_ACCOUNT', selectedIdentity })) dispatch(showModal({ name: 'CONFIRM_REMOVE_ACCOUNT', identity: selectedIdentity }))
onClose() onClose()
}} }}
iconClassName="fas fa-trash-alt" iconClassName="fas fa-trash-alt"