From 9ebb42130788a5eeeab5a2640235346f717efce4 Mon Sep 17 00:00:00 2001 From: Tudor Sitaru Date: Mon, 13 Apr 2026 13:56:58 +0100 Subject: [PATCH] fix(utils): tighten ofsted_grade type in buildOfstedListBadge --- nextjs-app/lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextjs-app/lib/utils.ts b/nextjs-app/lib/utils.ts index 18fdd10..330cc88 100644 --- a/nextjs-app/lib/utils.ts +++ b/nextjs-app/lib/utils.ts @@ -588,7 +588,7 @@ export interface OfstedListBadge { * - No inspection: "Not yet inspected" in grey */ export function buildOfstedListBadge(school: { - ofsted_grade?: number | null; + ofsted_grade?: 1 | 2 | 3 | 4 | null; ofsted_date?: string | null; ofsted_framework?: string | null; }): OfstedListBadge {