@gamelearn/arcade-components 1.4.22 → 1.4.23
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/dist/components/cards-selector-puzzle-component/components/CardsSelectorPuzzleComponent.js
CHANGED
|
@@ -125,11 +125,19 @@ var CardsSelectorPuzzleComponent = function CardsSelectorPuzzleComponent(_ref) {
|
|
|
125
125
|
setFeedbackResult(true);
|
|
126
126
|
setFeedbackIsShown(true);
|
|
127
127
|
} else {
|
|
128
|
+
var _info$solution, _specificFeedbacks$co;
|
|
129
|
+
|
|
128
130
|
setFeedbackResult(true);
|
|
129
131
|
setFeedbackIsShown(true);
|
|
130
132
|
setFinished(true);
|
|
131
|
-
|
|
132
|
-
var
|
|
133
|
+
|
|
134
|
+
var _info$solution$right = info === null || info === void 0 ? void 0 : (_info$solution = info.solution) === null || _info$solution === void 0 ? void 0 : _info$solution.right,
|
|
135
|
+
rewards = _info$solution$right.rewards;
|
|
136
|
+
|
|
137
|
+
var specificRewards = (specificFeedbacks === null || specificFeedbacks === void 0 ? void 0 : (_specificFeedbacks$co = specificFeedbacks.correctFeedbacks) === null || _specificFeedbacks$co === void 0 ? void 0 : _specificFeedbacks$co.map(function (spReward) {
|
|
138
|
+
return spReward.rewards;
|
|
139
|
+
}).flat()) || [];
|
|
140
|
+
var rewardsData = [].concat(_toConsumableArray(accRewards), _toConsumableArray(rewards), _toConsumableArray(specificRewards));
|
|
133
141
|
setTimeout(function () {
|
|
134
142
|
playSound('score');
|
|
135
143
|
closeFeedbackAndShowPoints(rewardsData);
|
|
@@ -178,7 +186,6 @@ var CardsSelectorPuzzleComponent = function CardsSelectorPuzzleComponent(_ref) {
|
|
|
178
186
|
|
|
179
187
|
setRightPick(true);
|
|
180
188
|
setFeedbackIsShown(true);
|
|
181
|
-
setRewards([].concat(_toConsumableArray(accRewards), _toConsumableArray(pickedCard === null || pickedCard === void 0 ? void 0 : pickedCard.rewards)));
|
|
182
189
|
emitEvent({
|
|
183
190
|
type: 'hidePuzzleButtons',
|
|
184
191
|
payload: true
|