Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: Hide copy password if it is not available. Fixes #7783

damencho4fdd4b66f781
diff --git a/react/features/security/components/security-dialog/PasswordSection.js b/react/features/security/components/security-dialog/PasswordSection.js
index 29ffd67fba..083ddfcd3d 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({
<a
className = 'remove-password'
onClick = { onPasswordRemove }>{ t('dialog.Remove') }</a>
- <a
- className = 'copy-password'
- onClick = { onPasswordCopy }>{ t('dialog.copy') }</a>
+ {
+
+ // There are cases like lobby and grant moderator when password is not available
+ password ? <>
+ <a
+ className = 'copy-password'
+ onClick = { onPasswordCopy }>{ t('dialog.copy') }</a>
+ </> : null
+ }
</>
);
}