@baravak/risloo-profile-cli 4.3.3 → 4.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baravak/risloo-profile-cli",
3
- "version": "4.3.3",
3
+ "version": "4.3.4",
4
4
  "description": "**Risloo Profile CLI** is a library for creating profiles, reports and sheets for *psychological* samples.",
5
5
  "main": "bin/risloo.js",
6
6
  "publishConfig": {
@@ -58,7 +58,7 @@ class JPFQ93 extends Profile {
58
58
  const clinicalScores = clinicalScoring(dataset.questions)
59
59
  const score2 = []
60
60
  dataset.score.forEach(score => {
61
- markSum += score.mark
61
+ markSum += (score.mark ?? 0)
62
62
  const s2= {label: {...score.label}}
63
63
  s2.mark = clinicalScores[score.label.eng].total
64
64
  s2.label.percentage = clinicalScores[score.label.eng].percentage