Skip to content

Commit

Permalink
Merge pull request #1439 from sapayth/fix/registration_error_when_mul…
Browse files Browse the repository at this point in the history
…tiple_password_fields

fix: error when multiple password fields
  • Loading branch information
sapayth authored Mar 22, 2024
2 parents 88d851a + 8fed63b commit e63ec03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/frontend-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@
}

if ( hasRepeat === 'yes' ) {
var repeatItem = $('[data-type="confirm_password"]').eq(0);
var repeatItem = $(item).closest('.wpuf-form').find('[data-type="confirm_password"]').eq(0);

if ( repeatItem.val() !== val ) {
errors.push({
Expand Down
Loading

0 comments on commit e63ec03

Please sign in to comment.