Skip to content

Commit 1222a40

Browse files
authored
Merge pull request #1127 from cupro29/fix_virtual_contest_fa
virtual contest の FA が正しく表示されないバグを修正
2 parents c14338a + 38f5c58 commit 1222a40

File tree

1 file changed

+1
-1
lines changed
  • atcoder-problems-frontend/src/pages/Internal/VirtualContest/ShowContest

1 file changed

+1
-1
lines changed

atcoder-problems-frontend/src/pages/Internal/VirtualContest/ShowContest/ResultCalcUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function reduceUserContestResult<
4343
const currentBest = result.get(submission.problem_id);
4444
const lastUpdatedEpochSecond = submission.epoch_second;
4545
if (currentBest) {
46-
if (currentBest.point < point) {
46+
if (currentBest.point < point || (!currentBest.accepted && accepted)) {
4747
result.set(problemId, {
4848
trials: currentBest.trials + 1,
4949
accepted: accepted || currentBest.accepted,

0 commit comments

Comments
 (0)