diff --git a/view/frontend/templates/breadcheckout/view.phtml b/view/frontend/templates/breadcheckout/view.phtml index 022debb..2f83340 100644 --- a/view/frontend/templates/breadcheckout/view.phtml +++ b/view/frontend/templates/breadcheckout/view.phtml @@ -114,7 +114,11 @@ let errorInfo = { err: 'err' }; - document.logBreadIssue('error', errorInfo, 'Instance of Bread Payments SDK does not exist'); + try { + document.logBreadIssue('error', errorInfo, 'Instance of Bread Payments SDK does not exist'); + } catch (error) { + console.error('Instance of Bread Payments SDK does not exist'); + } } }; @@ -491,4 +495,4 @@ }); }); - \ No newline at end of file +