This commit is contained in:
Hunter Thornsberry
2024-10-02 22:07:45 -04:00
parent 8549d56c21
commit d699764546
3 changed files with 7 additions and 5 deletions
@@ -25,7 +25,7 @@ export function PasswordGenerator<T extends FieldValues>({
}: GenericFormElementProps<T, PasswordGeneratorProps<T>>) {
const [passwordShown, setPasswordShown] = useState(false);
const togglePasswordVisiblity = () => {
setPasswordShown(passwordShown ? false : true);
setPasswordShown(!passwordShown);
};
return (