File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
view/frontend/web/js/action Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -106,15 +106,16 @@ define(
106
106
) . done (
107
107
function ( response ) {
108
108
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 ) {
110
110
alert ( {
111
111
title : $t ( 'Error' ) ,
112
- content : $t ( jsonResponse . buckaroo_response . limitReachedMessage ) ,
112
+ content : $t ( jsonResponse . limitReachedMessage ) ,
113
113
buttons : [ {
114
114
text : $t ( 'Close' ) ,
115
115
class : 'action primary accept' ,
116
116
click : function ( ) {
117
117
this . closeModal ( true ) ;
118
+ window . location . reload ( ) ;
118
119
}
119
120
} ]
120
121
} ) ;
You can’t perform that action at this time.
0 commit comments