-
{
diff --git a/apps/service/src/app/problem/solve/[publishId]/[problemId]/main-problem/page.tsx b/apps/service/src/app/problem/solve/[publishId]/[problemId]/main-problem/page.tsx
index 60501f9f..fef64c3f 100644
--- a/apps/service/src/app/problem/solve/[publishId]/[problemId]/main-problem/page.tsx
+++ b/apps/service/src/app/problem/solve/[publishId]/[problemId]/main-problem/page.tsx
@@ -9,10 +9,10 @@ import {
MainAnswerCheckModalTemplate,
PortalModal,
Tag,
- TimeTag,
ProgressHeader,
SmallButton,
NavigationFooter,
+ TimeTag,
} from '@components';
import { useInvalidate, useModal, useTrackEvent } from '@hooks';
import { ProblemStatus } from '@types';
@@ -62,7 +62,7 @@ const Page = () => {
const isSolved = status === 'CORRECT' || status === 'RETRY_CORRECT';
const isSubmitted = status === 'CORRECT' || status === 'RETRY_CORRECT' || status === 'INCORRECT';
const isDirect =
- childProblemStatuses.length === 0 ||
+ childProblemStatuses.length > 0 &&
childProblemStatuses[childProblemStatuses.length - 1] === 'NOT_STARTED';
const prevButtonLabel = isDirect
@@ -114,8 +114,20 @@ const Page = () => {
{
)}
-
- {!isDirect && childProblemStatuses.length > 0 && (
- - 새끼 문제 {problemNumber}-{childProblemNumber}번 -
+
+
+ 정답
+
+ )}
+ {status === 'INCORRECT' && (
+
+ 오답
+
+ )}
+
+ 새끼 문제 {problemNumber}-{childProblemNumber}번 +
+ {isSolved && ( +
-
+
+ 정답
+
+ )}
+ {status === 'INCORRECT' && (
+
+ 오답
+
+ )}
메인 문제 {number}번
-
+
+
+ {isSolved && (
+ 메인 문제 {number}번
+
-
새끼 문제 정답
-
- {childProblemStatuses.map((childProblemStatus, index) => (
-
- )}
+ )}
+
-
- {number}-{index + 1}번
-
-
- {statusLabel[childProblemStatus]}
-
-
- ))}
+ {!isDirect && childProblemStatuses.length > 0 && (
+
+
- 새끼 문제 정답
+
+ {childProblemStatuses.map((childProblemStatus, index) => (
+
+
+ {number}-{index + 1}번
+
+
+ {statusLabel[childProblemStatus]}
+
+
+ ))}
+
+