From 2ff7f924c063fb9f9c884c7984f1084a7208f777 Mon Sep 17 00:00:00 2001 From: rngsurrounded Date: Tue, 4 Mar 2025 00:45:27 +0900 Subject: [PATCH] minor fixes --- services/frontend/src/components/layout/header.tsx | 3 +-- services/frontend/src/pages/CompetitionSession/index.tsx | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/services/frontend/src/components/layout/header.tsx b/services/frontend/src/components/layout/header.tsx index 58c7a44..0f0cd86 100644 --- a/services/frontend/src/components/layout/header.tsx +++ b/services/frontend/src/components/layout/header.tsx @@ -31,10 +31,9 @@ export const Header = () => {
- Обучающие материалы diff --git a/services/frontend/src/pages/CompetitionSession/index.tsx b/services/frontend/src/pages/CompetitionSession/index.tsx index c42f2be..42ea9c4 100644 --- a/services/frontend/src/pages/CompetitionSession/index.tsx +++ b/services/frontend/src/pages/CompetitionSession/index.tsx @@ -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);