From fc17430ff4d68a88a5266479797b96506bd54d85 Mon Sep 17 00:00:00 2001 From: rngsurrounded Date: Mon, 3 Mar 2025 00:57:19 +0900 Subject: [PATCH] minor fixes --- services/frontend/src/pages/CompetitionSession/index.tsx | 1 - .../pages/CompetitionSession/modules/TaskSolution/index.tsx | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/services/frontend/src/pages/CompetitionSession/index.tsx b/services/frontend/src/pages/CompetitionSession/index.tsx index 2129c52..09fc40c 100644 --- a/services/frontend/src/pages/CompetitionSession/index.tsx +++ b/services/frontend/src/pages/CompetitionSession/index.tsx @@ -101,7 +101,6 @@ const CompetitionSession = () => { void; selectedFile: File | null; @@ -22,7 +21,6 @@ interface TaskSolutionProps { const TaskSolution: React.FC = ({ task, - solutions = [], answer, setAnswer, selectedFile, @@ -45,7 +43,7 @@ const TaskSolution: React.FC = ({ setIsHistoryOpen(true); }; - const latestSolution = solutions && solutions.length > 0 ? solutions[0] : null; + const latestSolution = solutionHistory && solutionHistory.length > 0 ? solutionHistory[0] : null; return (