fix(curriculum): robustly normalize student grade across app and backend to display subjects

This commit is contained in:
Hamza-Ayed
2026-09-09 01:28:31 +03:00
parent a8e895d5da
commit a4d6e34a40
4 changed files with 55 additions and 24 deletions
@@ -23,7 +23,7 @@ class _SubjectsGridScreenState extends State<SubjectsGridScreen> {
@override
void initState() {
super.initState();
final grade = widget.initialGrade ?? 'grade_10';
final grade = GradeLevelModel.normalizeGradeKey(widget.initialGrade ?? 'grade_10');
context.read<CurriculumCubit>().fetchSubjects(gradeLevel: grade);
}