diff --git a/src/components/basic/Input/index.tsx b/src/components/basic/Input/index.tsx index ada4adc..7524109 100644 --- a/src/components/basic/Input/index.tsx +++ b/src/components/basic/Input/index.tsx @@ -99,11 +99,11 @@ export const Input = ({ variant={variant} placeholder={placeholder} error={error} - type={showToggle ? (!showPassword ? 'password' : 'text') : 'text'} + type={showToggle && !showPassword ? 'password' : 'text'} InputProps={{ endAdornment: ( - {showToggle ? ( + {showToggle && ( {showPassword ? : } - ) : error ? ( + )} + {error && ( - ) : null} + )} ), }}