diff --git a/projects/backend/src/service/score.service.ts b/projects/backend/src/service/score.service.ts index 79fb523..7b258c8 100644 --- a/projects/backend/src/service/score.service.ts +++ b/projects/backend/src/service/score.service.ts @@ -212,7 +212,7 @@ export class ScoreService { right: score.accRight, }, } as AdditionalScoreData; - if (rawScoreImprovement.score > 0) { + if (rawScoreImprovement && rawScoreImprovement.score > 0) { data.scoreImprovement = { score: rawScoreImprovement.score, misses: {