Skip to content

Commit 345749e

Browse files
committed
Fix: skip entries with null or undefined university names in registration chart
1 parent ab01a21 commit 345749e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/components/dashboard/registrations.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ const RegistrationChart = ({ round, ghostLegion }) => {
4545
const universityMap = new Map();
4646

4747
registrationInfo?.university_counts?.forEach((university) => {
48+
if (!university.name) return; // Skip entries with null or undefined names
49+
4850
const normalizedName = university.name.toLowerCase();
4951
if (universityMap.has(normalizedName)) {
5052
const existing = universityMap.get(normalizedName);

0 commit comments

Comments
 (0)