Skip to content

Commit f154fa5

Browse files
Merge pull request #1099 from buckaroo-it/BP-3898-Failed-Riverty-order-is-showing-success-page-despite-multiple-rejections-spam-prevention-setting
BP-3898-Failed-Riverty-order-is-showing-success-page-despite-multiple-rejections-spam-prevention-setting
2 parents 749a72a + 6ac3921 commit f154fa5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

view/frontend/web/js/action/place-order.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,16 @@ define(
106106
).done(
107107
function (response) {
108108
let jsonResponse = $.parseJSON(response);
109-
if (typeof jsonResponse === 'object' && jsonResponse.buckaroo_response && typeof jsonResponse.buckaroo_response.limitReachedMessage === 'string') {
109+
if (typeof jsonResponse === 'object' && jsonResponse.limitReachedMessage) {
110110
alert({
111111
title: $t('Error'),
112-
content: $t(jsonResponse.buckaroo_response.limitReachedMessage),
112+
content: $t(jsonResponse.limitReachedMessage),
113113
buttons: [{
114114
text: $t('Close'),
115115
class: 'action primary accept',
116116
click: function () {
117117
this.closeModal(true);
118+
window.location.reload();
118119
}
119120
}]
120121
});

0 commit comments

Comments
 (0)