From 4fdd4b66f781ae28bf970f877909e5de84399d12 Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 5 Nov 2020 11:43:48 -0600 Subject: [PATCH] fix: Hide copy password if it is not available. Fixes #7783 --- .../components/security-dialog/PasswordSection.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/react/features/security/components/security-dialog/PasswordSection.js b/react/features/security/components/security-dialog/PasswordSection.js index 29ffd67fb..083ddfcd3 100644 --- a/react/features/security/components/security-dialog/PasswordSection.js +++ b/react/features/security/components/security-dialog/PasswordSection.js @@ -154,9 +154,15 @@ function PasswordSection({ { t('dialog.Remove') } - { t('dialog.copy') } + { + + // There are cases like lobby and grant moderator when password is not available + password ? <> + { t('dialog.copy') } + : null + } ); }