minor fixes

This commit is contained in:
rngsurrounded
2025-03-03 00:57:19 +09:00
parent 0ad79aa353
commit fc17430ff4
2 changed files with 1 additions and 4 deletions
@@ -12,7 +12,6 @@ import SolutionHistorySheet from './components/SolutionHistorySheet';
interface TaskSolutionProps {
task: Task;
solutions: Solution[];
answer: string;
setAnswer: (value: string) => void;
selectedFile: File | null;
@@ -22,7 +21,6 @@ interface TaskSolutionProps {
const TaskSolution: React.FC<TaskSolutionProps> = ({
task,
solutions = [],
answer,
setAnswer,
selectedFile,
@@ -45,7 +43,7 @@ const TaskSolution: React.FC<TaskSolutionProps> = ({
setIsHistoryOpen(true);
};
const latestSolution = solutions && solutions.length > 0 ? solutions[0] : null;
const latestSolution = solutionHistory && solutionHistory.length > 0 ? solutionHistory[0] : null;
return (
<div className="md:w-[500px] flex flex-col gap-4">