diff --git a/app/javascript/__tests__/pages/account/__snapshots__/account-settings.test.tsx.snap b/app/javascript/__tests__/pages/account/__snapshots__/account-settings.test.tsx.snap
index addca6c3e1..3697d247b0 100644
--- a/app/javascript/__tests__/pages/account/__snapshots__/account-settings.test.tsx.snap
+++ b/app/javascript/__tests__/pages/account/__snapshots__/account-settings.test.tsx.snap
@@ -655,7 +655,7 @@ exports[` when the user is signed in resize events 1`] =
class="input pr-10"
id="password"
name="password"
- type="password"
+ type="text"
value=""
/>
when the user is signed in resize events 1`] =
>
@@ -1487,7 +1487,7 @@ exports[` when the user is signed in resize events 1`] =
class="input pr-10"
id="password"
name="password"
- type="password"
+ type="text"
value=""
/>
when the user is signed in resize events 1`] =
>
@@ -2376,7 +2376,7 @@ exports[` when the user is signed in resize events 2`] =
class="input pr-10"
id="password"
name="password"
- type="password"
+ type="text"
value=""
/>
when the user is signed in resize events 2`] =
>
@@ -3208,7 +3208,7 @@ exports[` when the user is signed in resize events 2`] =
class="input pr-10"
id="password"
name="password"
- type="password"
+ type="text"
value=""
/>
when the user is signed in resize events 2`] =
>
diff --git a/app/javascript/pages/account/components/PasswordFieldset.tsx b/app/javascript/pages/account/components/PasswordFieldset.tsx
index fe2413607c..24cea04298 100644
--- a/app/javascript/pages/account/components/PasswordFieldset.tsx
+++ b/app/javascript/pages/account/components/PasswordFieldset.tsx
@@ -117,10 +117,12 @@ const NewPasswordInstructions = ({
)
}
-const PasswordField = ({
- ...props
-}: Omit) => {
- const [showPassword, setShowPassword] = React.useState(false)
+interface PasswordFieldProps extends Omit {
+ passwordVisibilityDefault?: boolean
+}
+
+const PasswordField = ({ passwordVisibilityDefault = false, ...props }: PasswordFieldProps) => {
+ const [showPassword, setShowPassword] = React.useState(passwordVisibilityDefault)
return (