fix(curriculum): robustly normalize student grade across app and backend to display subjects
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user