mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-09 15:38:03 -05:00
Small fix on PasswordGeneratorModal useMemo
This commit is contained in:
@@ -83,14 +83,7 @@ const PasswordGeneratorModal = ({
|
|||||||
|
|
||||||
const password = useMemo(() => {
|
const password = useMemo(() => {
|
||||||
return generatePassword();
|
return generatePassword();
|
||||||
}, [
|
}, [passwordOptions, refresh]);
|
||||||
passwordOptions.length,
|
|
||||||
passwordOptions.useUppercase,
|
|
||||||
passwordOptions.useLowercase,
|
|
||||||
passwordOptions.useNumbers,
|
|
||||||
passwordOptions.useSpecialChars,
|
|
||||||
refresh
|
|
||||||
]);
|
|
||||||
|
|
||||||
const copyToClipboard = () => {
|
const copyToClipboard = () => {
|
||||||
navigator.clipboard
|
navigator.clipboard
|
||||||
|
|||||||
Reference in New Issue
Block a user