@speakableio/core 1.0.17 → 1.0.18
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/index.web.js
CHANGED
|
@@ -1345,6 +1345,11 @@ function useUpdateCardScore({
|
|
|
1345
1345
|
cardIds,
|
|
1346
1346
|
weights
|
|
1347
1347
|
});
|
|
1348
|
+
console.log("updates", {
|
|
1349
|
+
cardScore: updatedCardScore,
|
|
1350
|
+
progress,
|
|
1351
|
+
score
|
|
1352
|
+
});
|
|
1348
1353
|
await updateCardScore({
|
|
1349
1354
|
userId,
|
|
1350
1355
|
cardId,
|
|
@@ -1411,7 +1416,9 @@ var getScoreUpdated = ({
|
|
|
1411
1416
|
[cardId]: newCardScore
|
|
1412
1417
|
}
|
|
1413
1418
|
};
|
|
1419
|
+
console.log("newScores", newScores, cardIds, weights);
|
|
1414
1420
|
const { score, progress } = calculateScoreAndProgress_default(newScores, cardIds, weights);
|
|
1421
|
+
console.log("score and progress", score, progress);
|
|
1415
1422
|
return {
|
|
1416
1423
|
newScoreUpdated: newScores,
|
|
1417
1424
|
updatedCardScore: cardScore,
|