@quesmed/types 2.6.274 → 2.6.275

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.
@@ -115,9 +115,9 @@ const getStationScore = (marks) => {
115
115
  }
116
116
  const { total, userScore } = marks.reduce((acc, mark) => {
117
117
  const choices = mark.osceStationMark?.choices;
118
- const multiplier = mark.secondaryMark ? 2 : 1;
118
+ const isDualMark = mark.secondaryMark != null;
119
119
  // Maximum possible score
120
- acc.total += multiplier ? 4 : choices?.length ? 2 : 1;
120
+ acc.total += isDualMark ? 4 : choices?.length ? 2 : 1;
121
121
  if (choices) {
122
122
  // paces product
123
123
  acc.userScore += MarkMap[mark.mark] ?? 0;
@@ -112,9 +112,9 @@ export const getStationScore = (marks) => {
112
112
  }
113
113
  const { total, userScore } = marks.reduce((acc, mark) => {
114
114
  const choices = mark.osceStationMark?.choices;
115
- const multiplier = mark.secondaryMark ? 2 : 1;
115
+ const isDualMark = mark.secondaryMark != null;
116
116
  // Maximum possible score
117
- acc.total += multiplier ? 4 : choices?.length ? 2 : 1;
117
+ acc.total += isDualMark ? 4 : choices?.length ? 2 : 1;
118
118
  if (choices) {
119
119
  // paces product
120
120
  acc.userScore += MarkMap[mark.mark] ?? 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.274",
3
+ "version": "2.6.275",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",