data check
This commit is contained in:
parent
023d9fe9ed
commit
5d22b3a2eb
|
@ -386,7 +386,7 @@ jQuery( function( $ ) {
|
|||
}
|
||||
|
||||
// Check for error
|
||||
if ( 'failure' === data.result ) {
|
||||
if ( data && 'failure' === data.result ) {
|
||||
|
||||
var $form = $( 'form.checkout' );
|
||||
|
||||
|
|
Loading…
Reference in New Issue