Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Remove unnecessary function call
carlosmonastyrskiecd39abdc101
diff --git a/frontend/src/components/v2/PasswordGenerator/PasswordGenerator.tsx b/frontend/src/components/v2/PasswordGenerator/PasswordGenerator.tsxindex 79e823ab4c..1f17e2e533 100644--- a/frontend/src/components/v2/PasswordGenerator/PasswordGenerator.tsx+++ b/frontend/src/components/v2/PasswordGenerator/PasswordGenerator.tsx@@ -69,8 +69,6 @@ const PasswordGeneratorModal = ({useEffect(() => {if (isOpen) {- generatePassword();-const handleClickOutside = (event: MouseEvent) => {if (modalRef.current && !modalRef.current.contains(event.target as Node)) {onClose();@@ -95,9 +93,14 @@ const PasswordGeneratorModal = ({]);const copyToClipboard = () => {- navigator.clipboard.writeText(password).then(() => {- setCopyText("Copied");- });+ navigator.clipboard+ .writeText(password)+ .then(() => {+ setCopyText("Copied");+ })+ .catch(() => {+ setCopyText("Copy failed");+ });};const usePassword = () => {