data check

This commit is contained in:
Mike Jolley 2019-03-18 11:02:26 +00:00
parent 023d9fe9ed
commit 5d22b3a2eb
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ jQuery( function( $ ) {
}
// Check for error
if ( 'failure' === data.result ) {
if ( data && 'failure' === data.result ) {
var $form = $( 'form.checkout' );