fix error
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 40s

This commit is contained in:
Lee 2024-10-22 18:55:47 +01:00
parent 6a1b18581f
commit ca8fb41fab

@ -212,7 +212,7 @@ export class ScoreService {
right: score.accRight, right: score.accRight,
}, },
} as AdditionalScoreData; } as AdditionalScoreData;
if (rawScoreImprovement.score > 0) { if (rawScoreImprovement && rawScoreImprovement.score > 0) {
data.scoreImprovement = { data.scoreImprovement = {
score: rawScoreImprovement.score, score: rawScoreImprovement.score,
misses: { misses: {