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

Always show connected accounts permissions if they exist (#20600)

* Show connected accounts permissions if they exist

* Add optional chaining
This commit is contained in:
Maarten Zuidhoorn 2023-08-25 12:40:28 +02:00 committed by GitHub
parent f8a7a83e05
commit 96210b9783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,9 +65,9 @@ export default class ConnectedAccounts extends PureComponent {
onClose={() => history.push(mostRecentOverviewPage)}
footerClassName="connected-accounts__footer"
footer={
connectedAccounts.length ? (
permissions?.length > 0 && (
<ConnectedAccountsPermissions permissions={permissions} />
) : null
)
}
>
<ConnectedAccountsList