Skip to content

Commit 83642a7

Browse files
๐Ÿ”– Release 0.1.1 (#501) (#510)
* ๐Ÿ”– Release 0.1.0 (#497) * โœจ Rejudge button for admin (#499) * ๐Ÿ“ˆAdd GA (#500) * ๐Ÿ“ˆAdd GA * ๐Ÿ› Fix GA tracking ID Co-authored-by: Pontakorn Prasertsuk <41262596+PeppaPigHS@users.noreply.github.com> Co-authored-by: Pontakorn Prasertsuk <41262596+PeppaPigHS@users.noreply.github.com>
1 parent 5b129e1 commit 83642a7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

โ€Žsrc/pages/submissions/[id].tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ const SubmissionDetail: NextPage = () => {
5757
)
5858

5959
const { user } = useUser()
60-
const [rejudgeStatus, setRejudgeStatus] = useState<boolean>(false)
6160

6261
useEffect(() => {
6362
const unsubscribe = firebase
@@ -93,9 +92,7 @@ const SubmissionDetail: NextPage = () => {
9392
}
9493

9594
const rejudgeSubmission = async () => {
96-
setRejudgeStatus(true)
9795
await fetchFromFirebase('rejudgeSubmission', { submissionID: id })
98-
setRejudgeStatus(false)
9996
}
10097

10198
return (
@@ -119,7 +116,6 @@ const SubmissionDetail: NextPage = () => {
119116
<IconButton
120117
aria-label="rejudge"
121118
icon={FaRedo}
122-
isLoading={rejudgeStatus}
123119
onClick={() => rejudgeSubmission()}
124120
/>
125121
)}

0 commit comments

Comments
ย (0)