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:
parent
f8a7a83e05
commit
96210b9783
@ -65,9 +65,9 @@ export default class ConnectedAccounts extends PureComponent {
|
|||||||
onClose={() => history.push(mostRecentOverviewPage)}
|
onClose={() => history.push(mostRecentOverviewPage)}
|
||||||
footerClassName="connected-accounts__footer"
|
footerClassName="connected-accounts__footer"
|
||||||
footer={
|
footer={
|
||||||
connectedAccounts.length ? (
|
permissions?.length > 0 && (
|
||||||
<ConnectedAccountsPermissions permissions={permissions} />
|
<ConnectedAccountsPermissions permissions={permissions} />
|
||||||
) : null
|
)
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<ConnectedAccountsList
|
<ConnectedAccountsList
|
||||||
|
Loading…
Reference in New Issue
Block a user