1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

V10.9.0: Disconnect all accounts flow (#13309)

This commit is contained in:
Niranjana Binoy 2022-01-13 18:05:35 -05:00 committed by ryanml
parent 0d2bc56e5e
commit 644e08eaea

View File

@ -53,7 +53,7 @@ const mapDispatchToProps = (dispatch) => {
dispatch(removePermittedAccount(subjectKey, address));
},
disconnectAllAccounts: (subjectKey, subject) => {
const permissionMethodNames = subject.permissions.map(
const permissionMethodNames = Object.values(subject.permissions).map(
({ parentCapability }) => parentCapability,
);
dispatch(