diff --git a/js/modals.js b/js/modals.js index 4e1e89f..92abf97 100644 --- a/js/modals.js +++ b/js/modals.js @@ -37,7 +37,7 @@ if (modalSelector) { return document.querySelector(modalSelector); } - if (modalToggle.hash) { + else if (modalToggle.hash) { try { return document.querySelector(modalToggle.hash); }