We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b129e1 commit 83642a7Copy full SHA for 83642a7
โsrc/pages/submissions/[id].tsx
@@ -57,7 +57,6 @@ const SubmissionDetail: NextPage = () => {
57
)
58
59
const { user } = useUser()
60
- const [rejudgeStatus, setRejudgeStatus] = useState<boolean>(false)
61
62
useEffect(() => {
63
const unsubscribe = firebase
@@ -93,9 +92,7 @@ const SubmissionDetail: NextPage = () => {
93
92
}
94
95
const rejudgeSubmission = async () => {
96
- setRejudgeStatus(true)
97
await fetchFromFirebase('rejudgeSubmission', { submissionID: id })
98
- setRejudgeStatus(false)
99
100
101
return (
@@ -119,7 +116,6 @@ const SubmissionDetail: NextPage = () => {
119
116
<IconButton
120
117
aria-label="rejudge"
121
118
icon={FaRedo}
122
- isLoading={rejudgeStatus}
123
onClick={() => rejudgeSubmission()}
124
/>
125
)}
0 commit comments