Merge pull request #14 from jcreek/12-empty-lines-in-the-textarea-are-added-to-the-spinner-as-names

12 empty lines in the textarea are added to the spinner as names
This commit is contained in:
Josh Creek
2022-10-08 17:26:23 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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": {
+1 -1
View File
@@ -182,7 +182,7 @@ function startOver() {
function startSpinning() {
const textArea = <HTMLInputElement>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) {