From 9d00122730a01560fa9cfab7832d38c534d7ca22 Mon Sep 17 00:00:00 2001 From: Matt Simon Date: Thu, 15 Aug 2019 15:17:13 +0100 Subject: [PATCH] Fixed conditional issue with feedback (#582) --- src/components/feedback/feedback.dom.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/feedback/feedback.dom.js b/src/components/feedback/feedback.dom.js index b0b9b49e7d..d4b190fac0 100644 --- a/src/components/feedback/feedback.dom.js +++ b/src/components/feedback/feedback.dom.js @@ -2,10 +2,7 @@ import domready from 'js/domready'; async function initialise() { const buttons = [...document.querySelectorAll('.js-feedback-button')]; - - if (buttons.length) { - const Feedback = (await import('./feedback')).default; - new Feedback(buttons); - } + const Feedback = (await import('./feedback')).default; + new Feedback(buttons); } domready(initialise);