Fix splice error

This commit is contained in:
Andrew 2022-10-13 00:01:53 -04:00
parent ec746d2131
commit 3b813a6849

View File

@ -192,7 +192,7 @@
function deleteItem(item) {
safe_item = sanitize(item);
console.log(item)
words.splice(words.indexOf(item), words.indexOf(item));
words.splice(words.indexOf(item), 1);
$("#" + safe_item.replaceAll(" ", "-")).remove();
liveSearch();
localStorage.setItem("words", JSON.stringify(words))