Skip to content

Commit

Permalink
Fixed conditional issue with feedback (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
boxadesign authored Aug 15, 2019
1 parent 35219b2 commit 9d00122
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/feedback/feedback.dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 9d00122

Please sign in to comment.