Skip to content

Commit

Permalink
Remove wrong afterPlaceOrder call
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinwy committed Jul 3, 2024
1 parent b5cd6b3 commit 6c34119
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,14 @@ define(
self.submitPayment().then(function (token) {
self.komojuToken(token);
boundSuper(data, event);
self.afterPlaceOrder();
}).catch(function () {
var message = $t("There was an error processing your payment. Please try again.");

messageList.addErrorMessage({ message: message });
fullScreenLoader.stopLoader();
});
} else {
self.komojuToken(null);
boundSuper(data, event);
self.afterPlaceOrder();
}
},

Expand Down

0 comments on commit 6c34119

Please sign in to comment.