diff --git a/package.json b/package.json index cde347d..4fd6ccf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "SelectionWheel", - "version": "1.3.0", + "version": "1.3.1", "description": "A fun and simple selection wheel.", "main": "index.js", "scripts": { diff --git a/src/index.ts b/src/index.ts index f8b7015..90d3193 100644 --- a/src/index.ts +++ b/src/index.ts @@ -182,7 +182,7 @@ function startOver() { function startSpinning() { const textArea = document.getElementById('input-lines'); const inputData = textArea.value.trim() - ? textArea.value.split('\n') + ? textArea.value.split('\n').filter((elm) => elm) : testData; const tempData = []; for (let index = 0; index < inputData.length; index += 1) {