Check count as well (statistics can be populated with zero counts)

This commit is contained in:
Dean Herbert 2021-07-04 16:41:09 +09:00
parent ef82528309
commit 7a710ceffe
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ private Task submitScore(Score score)
return scoreSubmissionSource.Task;
// if the user never hit anything, this score should not be counted in any way.
if (!score.ScoreInfo.Statistics.Any(s => s.Key.IsHit()))
if (!score.ScoreInfo.Statistics.Any(s => s.Key.IsHit() && s.Value > 0))
return Task.CompletedTask;
scoreSubmissionSource = new TaskCompletionSource<bool>();