Skip to content

Commit

Permalink
UX: Avoid Popover Footer when No Connected Sites (#20036)
Browse files Browse the repository at this point in the history
Co-authored-by: Nidhi Kumari <[email protected]>
  • Loading branch information
darkwing and NidhiKJha authored Jul 17, 2023
1 parent 4dcde1e commit 343cde9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/pages/connected-accounts/connected-accounts.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ export default class ConnectedAccounts extends PureComponent {
}
onClose={() => history.push(mostRecentOverviewPage)}
footerClassName="connected-accounts__footer"
footer={<ConnectedAccountsPermissions permissions={permissions} />}
footer={
connectedAccounts.length ? (
<ConnectedAccountsPermissions permissions={permissions} />
) : null
}
>
<ConnectedAccountsList
accountToConnect={accountToConnect}
Expand Down

0 comments on commit 343cde9

Please sign in to comment.