diff --git a/index.js b/index.js index b8b820e..0cf9f58 100644 --- a/index.js +++ b/index.js @@ -294,7 +294,7 @@ function clearHistoryInLocalStorage() { localStorage.removeItem("calculatorHistory"); } -function togglesClearHistoryButton(element, btn) { +function togglesClearHistoryButton(element) { clearHistoryBtn.classList.toggle("display", element.childElementCount > 0); } // functions creations ends