fix(linter): minor bug in exam-correct.hs

This commit is contained in:
Steffen Jost 2024-08-19 17:52:11 +02:00
parent be5e609b1f
commit 8bc3663ee2

View File

@ -301,7 +301,7 @@ export class ExamCorrect {
users: [user],
status: STATUS.LOADING,
};
if (results && results !== {}) rowInfo.results = results;
if (results && Object.keys(results).length > 0) rowInfo.results = results;
if (result !== undefined) rowInfo.result = result;
this._addRow(rowInfo);