sumMult fix

This commit is contained in:
thilo 2020-03-22 22:27:11 +01:00
parent b76f8a2fa8
commit 05429a4072
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@
return acc + current.multiplicator
}, 0)
this.risk = Math.round(summed / sumMult)
this.risk = sumMult === 0 ? -1 : Math.round(summed / sumMult)
for(let i = 0; i < answersFiltered.length; i ++) {
if (answersFiltered[i] < 33) {