1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 03:20:23 +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 Frederik Bolding
parent 8d63fabc4e
commit a292158324

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