diff --git a/assets/js/frontend/checkout.js b/assets/js/frontend/checkout.js index 8609e3c359c..76332d76d66 100644 --- a/assets/js/frontend/checkout.js +++ b/assets/js/frontend/checkout.js @@ -333,7 +333,7 @@ jQuery( function( $ ) { success: function( data ) { // Reload the page if requested - if ( true === data.reload ) { + if ( data && true === data.reload ) { window.location.reload(); return; }