diff --git a/services/frontend/src/pages/CompetitionSession/components/TaskContent/index.tsx b/services/frontend/src/pages/CompetitionSession/components/TaskContent/index.tsx index 634a7a0..7909578 100644 --- a/services/frontend/src/pages/CompetitionSession/components/TaskContent/index.tsx +++ b/services/frontend/src/pages/CompetitionSession/components/TaskContent/index.tsx @@ -25,14 +25,7 @@ const TaskContent: React.FC = ({ task }) => { const attachments = attachmentsQuery.data || []; - const convertToMarkdown = (text: string): string => { - if (!text) return ''; - - let markdown = text.replace(/\n/g, '\n\n'); - return markdown; - }; - const markdownText = convertToMarkdown(task.description); return (
@@ -45,7 +38,7 @@ const TaskContent: React.FC = ({ task }) => { remarkPlugins={[remarkMath, remarkGfm]} rehypePlugins={[rehypeKatex]} > - {markdownText} + {task.description}
diff --git a/services/frontend/src/pages/CompetitionSession/index.tsx b/services/frontend/src/pages/CompetitionSession/index.tsx index 4f92cae..9208099 100644 --- a/services/frontend/src/pages/CompetitionSession/index.tsx +++ b/services/frontend/src/pages/CompetitionSession/index.tsx @@ -69,7 +69,9 @@ const CompetitionSession = () => { }); const competition = competitionQuery.data; - const tasks = tasksQuery.data || []; + const tasks = [...(tasksQuery.data || [])].sort((a, b) => { + return a.in_competition_position - b.in_competition_position; + }); const results = resultsQuery.data || []; const isLoading = tasksQuery.isLoading || competitionQuery.isLoading; const error = tasksQuery.error || competitionQuery.error