File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ const SubmissionDetail: NextPage = () => {
57
57
)
58
58
59
59
const { user } = useUser ( )
60
- const [ rejudgeStatus , setRejudgeStatus ] = useState < boolean > ( false )
61
60
62
61
useEffect ( ( ) => {
63
62
const unsubscribe = firebase
@@ -93,9 +92,7 @@ const SubmissionDetail: NextPage = () => {
93
92
}
94
93
95
94
const rejudgeSubmission = async ( ) => {
96
- setRejudgeStatus ( true )
97
95
await fetchFromFirebase ( 'rejudgeSubmission' , { submissionID : id } )
98
- setRejudgeStatus ( false )
99
96
}
100
97
101
98
return (
@@ -119,7 +116,6 @@ const SubmissionDetail: NextPage = () => {
119
116
< IconButton
120
117
aria-label = "rejudge"
121
118
icon = { FaRedo }
122
- isLoading = { rejudgeStatus }
123
119
onClick = { ( ) => rejudgeSubmission ( ) }
124
120
/>
125
121
) }
You canโt perform that action at this time.
0 commit comments