From aa9ff90a87a2df1a94114448e96689c397ab356d Mon Sep 17 00:00:00 2001 From: Chidi Ekuma Date: Thu, 21 Mar 2024 17:27:30 +0000 Subject: [PATCH] Fix syntax errors in gtm.js --- app/webpacker/packs/gtm.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/webpacker/packs/gtm.js b/app/webpacker/packs/gtm.js index 20828a47d2..079d034bca 100644 --- a/app/webpacker/packs/gtm.js +++ b/app/webpacker/packs/gtm.js @@ -1,13 +1,13 @@ -import Gtm from '../gtm' +import Gtm from '../gtm'; -const gtmData = document.querySelector('[data-gtm-id]')?.dataset +const gtmData = document.querySelector('[data-gtm-id]')?.dataset; if (gtmData != null) { - const { gtmId, gtmNonce, gtmEnabled} = gtmData + const { gtmId, gtmNonce, gtmEnabled } = gtmData; if (gtmEnabled == 'true') { - const gtm = new Gtm(gtmId, gtmNonce) + const gtm = new Gtm(gtmId, gtmNonce); - gtm.init() + gtm.init(); } }