mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +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
8d63fabc4e
commit
a292158324
@ -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