File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
atcoder-problems-frontend/src/pages/Internal/VirtualContest/ShowContest Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,13 @@ import {
60
60
} from "./ResultCalcUtil" ;
61
61
62
62
const Problems = ( props : {
63
+ readonly alreadyJoined : boolean ;
63
64
readonly problems : VirtualContestProblem [ ] ;
64
65
readonly atCoderUserId : UserId ;
65
66
readonly start : number ;
66
67
readonly end : number ;
67
68
} ) => {
69
+ const { alreadyJoined } = props ;
68
70
const submissions = useVirtualContestSubmissions (
69
71
[ props . atCoderUserId ] ,
70
72
props . problems . map ( ( p ) => p . item . id ) ,
@@ -84,7 +86,7 @@ const Problems = (props: {
84
86
: new Map < UserId , ReducedProblemResult > ( ) ;
85
87
const ResultIcon = ( props : { id : ProblemId } ) => {
86
88
const result = results . get ( props . id ) ;
87
- if ( ! result ) return null ;
89
+ if ( ! alreadyJoined || ! result ) return null ;
88
90
if ( result . accepted ) {
89
91
return < FcCheckmark /> ;
90
92
} else {
You can’t perform that action at this time.
0 commit comments