From a292158324c5fca8dba91983e1638f87d4d46dc0 Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Fri, 25 Aug 2023 12:40:28 +0200 Subject: [PATCH] Always show connected accounts permissions if they exist (#20600) * Show connected accounts permissions if they exist * Add optional chaining --- ui/pages/connected-accounts/connected-accounts.component.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/pages/connected-accounts/connected-accounts.component.js b/ui/pages/connected-accounts/connected-accounts.component.js index 24fdb79ac..6be0862d1 100644 --- a/ui/pages/connected-accounts/connected-accounts.component.js +++ b/ui/pages/connected-accounts/connected-accounts.component.js @@ -65,9 +65,9 @@ export default class ConnectedAccounts extends PureComponent { onClose={() => history.push(mostRecentOverviewPage)} footerClassName="connected-accounts__footer" footer={ - connectedAccounts.length ? ( + permissions?.length > 0 && ( - ) : null + ) } >