diff --git a/internal/controller/submission.go b/internal/controller/submission.go index 7f20da06..5eb77ee3 100644 --- a/internal/controller/submission.go +++ b/internal/controller/submission.go @@ -102,6 +102,10 @@ func (c *SubmissionController) Create(ctx *gin.Context) { return } cache.C().DeleteByPrefix("submissions") + if status == 2 { + cache.C().DeleteByPrefix("challenges") + cache.C().DeleteByPrefix("game_challenges") + } ctx.JSON(http.StatusOK, gin.H{ "code": http.StatusOK, "rank": rank, diff --git a/web/src/components/modals/GameTeamApplyModal.tsx b/web/src/components/modals/GameTeamApplyModal.tsx index 22d9bbc9..90842e45 100644 --- a/web/src/components/modals/GameTeamApplyModal.tsx +++ b/web/src/components/modals/GameTeamApplyModal.tsx @@ -152,7 +152,7 @@ export default function GameTeamApplyModal(props: GameTeamApplyModalProps) { createGameTeam(team); }} > - check + check ))} diff --git a/web/src/pages/games/[id]/scoreboard.tsx b/web/src/pages/games/[id]/scoreboard.tsx index 26fa0c3b..f9f048a2 100644 --- a/web/src/pages/games/[id]/scoreboard.tsx +++ b/web/src/pages/games/[id]/scoreboard.tsx @@ -336,7 +336,7 @@ function Page() { lineHeight: "2.5rem", }} > - + @@ -385,7 +385,7 @@ function Page() { align={"center"} justify={"center"} > - + { categoriedChallenge?.category ?.icon