From 231636cbccff54b722128747fda9450bdecad434 Mon Sep 17 00:00:00 2001 From: Alex P Date: Wed, 20 Dec 2023 10:27:45 +0200 Subject: [PATCH] Fix .messages access --- .../resources/js/modules/ContextBootstrap/MessagesBootstap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-button/resources/js/modules/ContextBootstrap/MessagesBootstap.js b/modules/ppcp-button/resources/js/modules/ContextBootstrap/MessagesBootstap.js index 775170345..1c20e871b 100644 --- a/modules/ppcp-button/resources/js/modules/ContextBootstrap/MessagesBootstap.js +++ b/modules/ppcp-button/resources/js/modules/ContextBootstrap/MessagesBootstap.js @@ -12,7 +12,7 @@ class MessagesBootstrap { } init() { - if (this.gateway.messages.block.enabled) { + if (this.gateway.messages?.block?.enabled) { this.discoverBlocks(); } jQuery(document.body).on('ppcp_cart_rendered ppcp_checkout_rendered', () => {