Fix .messages access

This commit is contained in:
Alex P 2023-12-20 10:27:45 +02:00
parent 2e0845cbd4
commit 231636cbcc
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -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', () => {