Bug Description
There is a logic inversion in the password visibility toggle on the account creation form. When the eye icon is slashed/closed (indicating the password should be hidden), the plain text password is fully visible. Conversely, when the eye icon is open, the password characters are masked.
Steps to Reproduce
- Navigate to the "Create your account" (Signup) page.
- Type any characters into the Password input field.
- Observe the current toggle state:
- Slashed eye icon shows the text
bsbbsbs (visible).
- Open eye icon masks the text.
Expected Behavior
- When
showPassword is false (slashed eye icon), the input type should be password (characters masked).
- When
showPassword is true (open eye icon), the input type should be text (characters visible in plain text).
Screenshots
Environment
- Repository: frontend (StackIt Signup View)
Possible Fix
In the password input field component, the icon rendering condition needs to be swapped to match the underlying state value:
// Current inverted logic setup needs to be updated to:
{showPassword ? <EyeOffIcon/> : <EyeIcon/>}
Bug Description
There is a logic inversion in the password visibility toggle on the account creation form. When the eye icon is slashed/closed (indicating the password should be hidden), the plain text password is fully visible. Conversely, when the eye icon is open, the password characters are masked.
Steps to Reproduce
bsbbsbs(visible).Expected Behavior
showPasswordisfalse(slashed eye icon), the input type should bepassword(characters masked).showPasswordistrue(open eye icon), the input type should betext(characters visible in plain text).Screenshots
Environment
Possible Fix
In the password input field component, the icon rendering condition needs to be swapped to match the underlying state value: