Skip to content

Commit 9b3b204

Browse files
committed
Issue 36184: update code
1 parent ff124b5 commit 9b3b204

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Checkout/view/frontend/web/js/action/update-shopping-cart.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,9 @@ define([
156156
elm,
157157
responseData = [];
158158

159-
if (response['error_message'] === undefined) {
159+
try {
160160
responseData = JSON.parse(response['error_message']);
161+
} catch (error) {
161162
}
162163

163164
if (response['error_message']) {

0 commit comments

Comments
 (0)