Skip to content

Commit 487603f

Browse files
Fixed data ribbon stats (#427)
1 parent d5cbebc commit 487603f

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

.env.development

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/components/dashboard/data-ribbon.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ interface DataRibbonProps {
6969

7070
export function DataRibbon({ stats, seasonType }: DataRibbonProps) {
7171
const overallStats = stats.overallStats;
72+
const unplacedCount =
73+
overallStats.totalRegisteredStudentsCount - overallStats.placedStudentsCount;
7274
let packageLabel = "Stipend";
7375
if (seasonType === "PLACEMENT") {
7476
packageLabel = "Package";
@@ -114,9 +116,10 @@ export function DataRibbon({ stats, seasonType }: DataRibbonProps) {
114116
info="Number of students placed"
115117
/>
116118
<StatCard
117-
value={`${overallStats.unplacedPercentage.toFixed(2)}%`}
119+
value={unplacedCount}
118120
label="Total Unplaced Students"
119-
info="Percentage of eligible students yet to be placed"
121+
subtext={`${overallStats.unplacedPercentage.toFixed(2)}% unplaced`}
122+
info="Unplaced students among total registered"
120123
/>
121124
<StatCard
122125
value={overallStats.lowestPackage.toFixed(2)}

0 commit comments

Comments
 (0)