@gamelearn/arcade-components 1.4.19 → 1.4.21
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
|
@@ -197,6 +197,7 @@ var CardsSelectorPuzzleComponent = function CardsSelectorPuzzleComponent(_ref) {
|
|
|
197
197
|
if (failedCard !== null && failedCard !== void 0 && failedCard.desc) {
|
|
198
198
|
setFeedBackText(failedCard.desc);
|
|
199
199
|
setFeedbackIsShown(true);
|
|
200
|
+
setRewards([].concat(_toConsumableArray(accRewards), [failedCard === null || failedCard === void 0 ? void 0 : failedCard.rewards]));
|
|
200
201
|
} else {
|
|
201
202
|
setFeedbackIsShown(true);
|
|
202
203
|
setTimeout(function () {
|
|
@@ -207,8 +208,6 @@ var CardsSelectorPuzzleComponent = function CardsSelectorPuzzleComponent(_ref) {
|
|
|
207
208
|
});
|
|
208
209
|
}, 2000);
|
|
209
210
|
}
|
|
210
|
-
|
|
211
|
-
setRewards([].concat(_toConsumableArray(accRewards), [failedCard === null || failedCard === void 0 ? void 0 : failedCard.rewards]));
|
|
212
211
|
} // si hay feedback definido
|
|
213
212
|
else if (info.solution.wrong.desc) {
|
|
214
213
|
setFeedBackText(info.solution.wrong.desc);
|