Skip to content

Commit

Permalink
fix(traffic): make deletion works as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Apr 23, 2024
1 parent 8374f0d commit c086075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GZCTF/ClientApp/src/pages/games/[id]/monitor/Traffic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const Traffic: FC = () => {

setDisabled(true)

api.game
return api.game
.gameDeleteTeamTraffic(challengeId, participationId, item.fileName)
.then(() => {
showNotification({
Expand Down Expand Up @@ -115,7 +115,7 @@ const Traffic: FC = () => {
})
})
.finally(() => {
mutateTeam()
mutateTeam([], false)
mutate()
setDisabled(false)
})
Expand Down

0 comments on commit c086075

Please sign in to comment.