Skip to content

Commit

Permalink
BP-3898-Failed-Riverty-order-is-showing-success-page-despite-multiple…
Browse files Browse the repository at this point in the history
…-rejections-spam-prevention-setting
  • Loading branch information
AlbinaBaraliu committed Nov 12, 2024
1 parent 749a72a commit 6ac3921
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions view/frontend/web/js/action/place-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,16 @@ define(
).done(
function (response) {
let jsonResponse = $.parseJSON(response);
if (typeof jsonResponse === 'object' && jsonResponse.buckaroo_response && typeof jsonResponse.buckaroo_response.limitReachedMessage === 'string') {
if (typeof jsonResponse === 'object' && jsonResponse.limitReachedMessage) {
alert({
title: $t('Error'),
content: $t(jsonResponse.buckaroo_response.limitReachedMessage),
content: $t(jsonResponse.limitReachedMessage),
buttons: [{
text: $t('Close'),
class: 'action primary accept',
click: function () {
this.closeModal(true);
window.location.reload();
}
}]
});
Expand Down

0 comments on commit 6ac3921

Please sign in to comment.