@gamelearn/arcade-components 1.4.19 → 1.4.20
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
|
@@ -92,6 +92,8 @@ var CardsSelectorPuzzleComponent = function CardsSelectorPuzzleComponent(_ref) {
|
|
|
92
92
|
var _soundActions = _slicedToArray(soundActions, 1),
|
|
93
93
|
playSound = _soundActions[0];
|
|
94
94
|
|
|
95
|
+
console.log('yeaaaaa');
|
|
96
|
+
|
|
95
97
|
var translate = function translate(id) {
|
|
96
98
|
return emitEvent({
|
|
97
99
|
type: 'translate',
|
|
@@ -197,6 +199,7 @@ var CardsSelectorPuzzleComponent = function CardsSelectorPuzzleComponent(_ref) {
|
|
|
197
199
|
if (failedCard !== null && failedCard !== void 0 && failedCard.desc) {
|
|
198
200
|
setFeedBackText(failedCard.desc);
|
|
199
201
|
setFeedbackIsShown(true);
|
|
202
|
+
setRewards([].concat(_toConsumableArray(accRewards), [failedCard === null || failedCard === void 0 ? void 0 : failedCard.rewards]));
|
|
200
203
|
} else {
|
|
201
204
|
setFeedbackIsShown(true);
|
|
202
205
|
setTimeout(function () {
|
|
@@ -207,8 +210,6 @@ var CardsSelectorPuzzleComponent = function CardsSelectorPuzzleComponent(_ref) {
|
|
|
207
210
|
});
|
|
208
211
|
}, 2000);
|
|
209
212
|
}
|
|
210
|
-
|
|
211
|
-
setRewards([].concat(_toConsumableArray(accRewards), [failedCard === null || failedCard === void 0 ? void 0 : failedCard.rewards]));
|
|
212
213
|
} // si hay feedback definido
|
|
213
214
|
else if (info.solution.wrong.desc) {
|
|
214
215
|
setFeedBackText(info.solution.wrong.desc);
|