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

View File

@ -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: {