diff --git a/package.json b/package.json index 0daaca4..4ff21d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dice", - "version": "1.0.16", + "version": "1.0.17", "description": "Calculates the probability of rolling a value given a combination of dice.", "author": "F.W. Dekker", "browser": "dist/bundle.js", diff --git a/src/main/js/main.js b/src/main/js/main.js index 91ef3cf..5caf30c 100644 --- a/src/main/js/main.js +++ b/src/main/js/main.js @@ -126,7 +126,7 @@ inputTable.addDieRow = () => { }; inputTable.removeDieRow = index => { - if (inputTable.highestDieRowIndex() > 0) { + if (inputTable.dieRowCount() > 1) { const table = inputTable.getTable(); const row = table.querySelector("tr[data-index=\"" + index + "\"]"); row.parentElement.removeChild(row);