From 96210b9783e58106f09b573715ccbeffe90a05b7 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 + ) } >