Skip to content

Commit

Permalink
fix: frontend form submission error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sapayth committed Feb 5, 2024
1 parent 5d382d6 commit f402cc3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assets/js/frontend-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@

if ( typeof res.type !== 'undefined' && res.type === 'login' ) {

if ( confirm(res.error) ) {
if ( confirm(res.data.error) ) {
window.location = res.redirect_to;
} else {
submitButton.removeAttr('disabled');
Expand All @@ -482,7 +482,7 @@
}

Swal.fire({
html: res.error,
html: res.data.error,
icon: 'warning',
showCancelButton: false,
confirmButtonColor: '#d54e21',
Expand Down
Loading

0 comments on commit f402cc3

Please sign in to comment.