fix(list): remove no-op null coerce and stale comment in SecondarySchoolRow

This commit is contained in:
Tudor Sitaru
2026-04-13 14:11:05 +01:00
parent 58f8eae997
commit ad2fe5bbef
+2 -2
View File
@@ -4,7 +4,7 @@
* *
* Line 1: School name · Ofsted badge * Line 1: School name · Ofsted badge
* Line 2: School type · Age range · Gender · Sixth form · Admissions tag * Line 2: School type · Age range · Gender · Sixth form · Admissions tag
* Line 3: Attainment 8 (large) · ±LA avg delta · Eng & Maths 4+ · Pupils * Line 3: Attainment 8 (large) · ±LA avg delta · Pupils
* Line 4: LA name · distance * Line 4: LA name · distance
*/ */
@@ -53,7 +53,7 @@ export function SecondarySchoolRow({
const ofstedBadge = buildOfstedListBadge(school); const ofstedBadge = buildOfstedListBadge(school);
const phase = getPhaseStyle(school.phase); const phase = getPhaseStyle(school.phase);
const att8 = school.attainment_8_score ?? null; const att8 = school.attainment_8_score;
const laDelta = const laDelta =
att8 != null && laAvgAttainment8 != null ? att8 - laAvgAttainment8 : null; att8 != null && laAvgAttainment8 != null ? att8 - laAvgAttainment8 : null;