diff --git a/lib/js/modals.js b/lib/js/modals.js index 2d8c7a9..51f0770 100644 --- a/lib/js/modals.js +++ b/lib/js/modals.js @@ -16,8 +16,7 @@ var getModal = function (event) { var modalToggle = findModals(event.target); - if (!modalToggle || !modalToggle.hash) return; - return document.querySelector(modalToggle.hash); + if (!modalToggle || !modalToggle.hash) return document.querySelector(modalToggle.hash); }; window.addEventListener('touchend', function (event) {