@gamelearn/arcade-components 2.24.0 → 2.24.2

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.
@@ -129,7 +129,7 @@ var ResultsComponent = function ResultsComponent(_ref) {
129
129
  var allIsCorrect = getNumberOfQuestionsCorrectlyAnswered() === totalCorrectAnswers;
130
130
  var minimumPercentageNotExceeded = numberOfQuestionsCorrectlyAnswered < minimumPercentage;
131
131
  var minimumPercentageExceeded = numberOfQuestionsCorrectlyAnswered >= minimumPercentage;
132
- var showFinishButton = !mandatory || allIsCorrect;
132
+ var showFinishButton = !mandatory || minimumPercentageExceeded;
133
133
  var bar = Math.trunc(points / totalCorrectAnswers * 100);
134
134
 
135
135
  var translate = function translate(id, values) {
@@ -54,7 +54,8 @@ var TestComponent = function TestComponent(_ref) {
54
54
  audio = _ref.audio,
55
55
  required = _ref.required,
56
56
  pause = _ref.pause,
57
- minimumPercentage = _ref.minimumPercentage;
57
+ _ref$minimumPercentag = _ref.minimumPercentage,
58
+ minimumPercentage = _ref$minimumPercentag === void 0 ? 100 : _ref$minimumPercentag;
58
59
  var questions = test.questions;
59
60
 
60
61
  var _useState = (0, _react.useState)({}),
@@ -342,7 +343,7 @@ var TestComponent = function TestComponent(_ref) {
342
343
  timeOverText: countdown.text,
343
344
  emitEvent: emitEvent,
344
345
  soundActions: soundActions,
345
- minimumPercentage: calculatedMinimum || 0
346
+ minimumPercentage: calculatedMinimum
346
347
  })));
347
348
  };
348
349
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "author": "Gamelearn",
4
4
  "license": "unlicense",
5
- "version": "2.24.0",
5
+ "version": "2.24.2",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist",