@quesmed/types-rn 2.0.15 → 2.0.16

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.
@@ -50,8 +50,7 @@ function createTimerPayload(osceMarksheet) {
50
50
  stage: EOsceStage.READING,
51
51
  state: EOsceTimerState.PAUSE,
52
52
  };
53
- if (!osceMarksheet.startedAt ||
54
- !osceMarksheet.endedAt ||
53
+ if (!osceMarksheet.endedAt ||
55
54
  !osceMarksheet.readingTime ||
56
55
  !osceMarksheet.stationTime ||
57
56
  !osceMarksheet.feedbackTime) {
@@ -66,7 +65,7 @@ function createTimerPayload(osceMarksheet) {
66
65
  endedAt = osceMarksheet.endedAt;
67
66
  }
68
67
  else {
69
- endedAt = Math.floor(osceMarksheet.endedAt.getTime() / 1000);
68
+ endedAt = Math.floor(new Date(osceMarksheet.endedAt).getTime() / 1000);
70
69
  }
71
70
  // calculate duration from pause timestamp or from current time
72
71
  let timeRemainingDuration = endedAt - Math.floor(Date.now() / 1000);
@@ -79,7 +78,7 @@ function createTimerPayload(osceMarksheet) {
79
78
  pausedAt = osceMarksheet.pausedAt;
80
79
  }
81
80
  else {
82
- pausedAt = Math.floor(osceMarksheet.pausedAt.getTime() / 1000);
81
+ pausedAt = Math.floor(new Date(osceMarksheet.pausedAt).getTime() / 1000);
83
82
  }
84
83
  timeRemainingDuration = endedAt - pausedAt;
85
84
  payload.state = EOsceTimerState.PAUSE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",