File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Teacher/Teacher/SpeedGrader/Grading/Points/ViewModel Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -151,9 +151,15 @@ class SpeedGraderSubmissionGradesViewModel: ObservableObject {
151151
152152 var isGradeChanged : Bool {
153153 guard let initialGrade else {
154+ // Checking if last submission is reflected on lately generated
155+ // grade state of stored objects of concern (Assignment & Submission).
156+ // Which implies it submitted for first time at this session.
154157 return lastSubmittedGrade != nil
155158 && lastSubmittedGrade == gradeState. originalGrade
156159 }
160+
161+ // Check if the grade of lately generated state is different from the one
162+ // we started this session with.
157163 return gradeState. originalGrade != initialGrade
158164 }
159165
You can’t perform that action at this time.
0 commit comments