From 6ac392106fbdb20fd1b971b4cf1514cba782b631 Mon Sep 17 00:00:00 2001 From: "a.baraliu" Date: Tue, 12 Nov 2024 16:53:22 +0100 Subject: [PATCH] BP-3898-Failed-Riverty-order-is-showing-success-page-despite-multiple-rejections-spam-prevention-setting --- view/frontend/web/js/action/place-order.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/view/frontend/web/js/action/place-order.js b/view/frontend/web/js/action/place-order.js index 598174558..cdd0ad4b2 100644 --- a/view/frontend/web/js/action/place-order.js +++ b/view/frontend/web/js/action/place-order.js @@ -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(); } }] });