Fixed "e is null" error on checkout page

Fixed "e is null" on checkout page which caused the order panel to be disabled.
This commit is contained in:
popala 2019-03-13 19:37:14 +01:00 committed by GitHub
parent 6995e6ec84
commit 023d9fe9ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}