Skip to content

Commit

Permalink
Change the data.error check in the Ajax request for SendWP registration
Browse files Browse the repository at this point in the history
  • Loading branch information
New0 committed Jun 9, 2020
1 parent 1c94104 commit 77f5680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sendwp/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function caldera_forms_sendwp_remote_install() {
jQuery.post(ajaxurl, data, function(response) {
var data = JSON.parse(response);

if(data.error === true ){
if( data.error ){

var element = jQuery("#cf-email-settings-ui"),
inner = '<div class="notice error"></div>',
Expand Down

0 comments on commit 77f5680

Please sign in to comment.