Lashtw commited on
Commit
5ccd8d9
·
verified ·
1 Parent(s): 83db528

Upload 9 files

Browse files
Files changed (1) hide show
  1. 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 = (higherCount + 1) / classSize;
714
- console.log(`Evolution Rank: ${higherCount + 1}/${classSize} (${percentile})`);
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
  }