Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
BeycanDeveloper committed Mar 22, 2024
1 parent 160a4c9 commit ac565b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,7 @@ public function paymentRedirectUrls(object $data): array
*/
public function hashCryptoPayField(array $forms, bool $multiple = false): bool
{
return false !== wpforms_has_field_type('cryptopay', $forms, $multiple)
|| false !== wpforms_has_field_type('cryptopay-lite', $forms, $multiple);
return false !== wpforms_has_field_type($this->type, $forms, $multiple);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}
$(".wpforms-error.cp-error").remove()
} else if ($(".wpforms-error.cp-error").length === 0) {
$("#cryptopay, #cryptopay-lite").before('<div class="wpforms-error wpforms-error-generic cp-error">' + amountMustBeGreaterThanZero + '</div>')
$("#" + type).before('<div class="wpforms-error wpforms-error-generic cp-error">' + amountMustBeGreaterThanZero + '</div>')
}
});
});
Expand Down

0 comments on commit ac565b8

Please sign in to comment.