mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 22:37:10 +00:00
minor fixes
This commit is contained in:
@@ -47,14 +47,12 @@ const CompetitionSession = () => {
|
||||
queryKey: ['solutionHistory', competitionId, taskId]
|
||||
});
|
||||
|
||||
// Start the reload countdown
|
||||
setIsReloading(true);
|
||||
|
||||
// Schedule the page reload
|
||||
setTimeout(() => {
|
||||
navigate(`/competition/${competitionId}/tasks/${taskId}`, { replace: true });
|
||||
window.location.reload()
|
||||
setIsReloading(false);
|
||||
}, 5000);
|
||||
}, 2500);
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error("Error submitting solution:", error);
|
||||
|
||||
Reference in New Issue
Block a user