minor fixes

This commit is contained in:
rngsurrounded
2025-03-04 00:45:27 +09:00
parent 7a85ca276f
commit 2ff7f924c0
2 changed files with 3 additions and 6 deletions
@@ -31,10 +31,9 @@ export const Header = () => {
<div className="flex items-center gap-4"> <div className="flex items-center gap-4">
<Link <Link
to="/docs" to="/docs/"
className="text-sm font-medium text-gray-700 hover:text-gray-900 transition-colors flex items-center gap-1" 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> </Link>
@@ -47,14 +47,12 @@ const CompetitionSession = () => {
queryKey: ['solutionHistory', competitionId, taskId] queryKey: ['solutionHistory', competitionId, taskId]
}); });
// Start the reload countdown
setIsReloading(true); setIsReloading(true);
// Schedule the page reload
setTimeout(() => { setTimeout(() => {
navigate(`/competition/${competitionId}/tasks/${taskId}`, { replace: true }); window.location.reload()
setIsReloading(false); setIsReloading(false);
}, 5000); }, 2500);
}, },
onError: (error) => { onError: (error) => {
console.error("Error submitting solution:", error); console.error("Error submitting solution:", error);