mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 23:17:09 +00:00
minor fixes
This commit is contained in:
@@ -31,10 +31,9 @@ export const Header = () => {
|
||||
|
||||
<div className="flex items-center gap-4">
|
||||
<Link
|
||||
to="/docs"
|
||||
to="/docs/"
|
||||
className="text-sm font-medium text-gray-700 hover:text-gray-900 transition-colors flex items-center gap-1"
|
||||
>
|
||||
<FileText className="h-4 w-4" />
|
||||
Обучающие материалы
|
||||
</Link>
|
||||
|
||||
|
||||
@@ -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