Spaces:
Running
Running
Upload 9 files
Browse files- src/views/StudentView.js +2 -2
src/views/StudentView.js
CHANGED
|
@@ -710,8 +710,8 @@ window.triggerEvolution = async (currentStage, nextStage, likes, classSize, curr
|
|
| 710 |
|
| 711 |
try {
|
| 712 |
const higherCount = await getHigherStageCount(roomCode, nextStage);
|
| 713 |
-
percentile =
|
| 714 |
-
console.log(`Evolution Rank: ${higherCount
|
| 715 |
} catch (e) {
|
| 716 |
console.error("Rank calc failed", e);
|
| 717 |
}
|
|
|
|
| 710 |
|
| 711 |
try {
|
| 712 |
const higherCount = await getHigherStageCount(roomCode, nextStage);
|
| 713 |
+
percentile = higherCount / classSize;
|
| 714 |
+
console.log(`Evolution Rank: ${higherCount}/${classSize} (Percentile: ${percentile.toFixed(2)})`);
|
| 715 |
} catch (e) {
|
| 716 |
console.error("Rank calc failed", e);
|
| 717 |
}
|