Fixed a bug in the RegisterFields.jsx

This commit is contained in:
2023-09-09 18:03:20 +02:00
parent 6cd70b8145
commit bf012fe616

View File

@@ -24,7 +24,7 @@ export const RegisterFields = ({username, setUsername, email, setEmail, password
onClick={() => setPasswordShown(!passwordShown)}>
<IconButton>{passwordShown ? <VisibilityOff/> : <Visibility/>}</IconButton>
</InputAdornment>
}} type={passwordShown ? "text" : "password"} autoComplete="current-password"
}} type={passwordShown ? "text" : "password"} autoComplete="new-password"
error={fieldError === "password"} value={password} onChange={(e) => setPassword(e.target.value)}/>
</>
)