Skip to content

Commit

Permalink
some fixes related with matchPassword property
Browse files Browse the repository at this point in the history
  • Loading branch information
TigranBoomTech committed Nov 19, 2024
1 parent dc4f00c commit 1b6229f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Body/Fields/Password/Password.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ const Password = ({
})}
></span>

{matchPassword && (
{matchPassword?.enabled && (
<>
<Input
{...props}
id={`${props.id}_confirm`}
validation={newValidation}
type={passwordVisible.showConfirmPassword ? 'text' : 'password'}
placeholder='Confirm Password'
placeholder={matchPassword?.placeholder}
matchPassword={matchPassword}
/>
<span
onClick={() =>
Expand Down

0 comments on commit 1b6229f

Please sign in to comment.