@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 ||
|
|
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
|
-
|
|
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
|
|
346
|
+
minimumPercentage: calculatedMinimum
|
|
346
347
|
})));
|
|
347
348
|
};
|
|
348
349
|
|