sumMult fix
This commit is contained in:
parent
b76f8a2fa8
commit
05429a4072
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue