Skip to content

Commit 709802c

Browse files
committed
Merge branch 'main' into pre-production
2 parents e0d4ebf + e211e89 commit 709802c

File tree

1 file changed

+4
-3
lines changed
  • apps/service/src/app/problem/solve/[publishId]/[problemId]/main-problem

1 file changed

+4
-3
lines changed

apps/service/src/app/problem/solve/[publishId]/[problemId]/main-problem/page.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ const Page = () => {
6565
childProblemStatuses.length > 0 &&
6666
childProblemStatuses[childProblemStatuses.length - 1] === 'NOT_STARTED';
6767

68-
const prevButtonLabel = isDirect
69-
? `메인 문제 ${number}번`
70-
: `새끼 문제 ${number}-${childProblemLength}번`;
68+
const prevButtonLabel =
69+
isDirect || childProblemLength === 0
70+
? `메인 문제 ${number}번`
71+
: `새끼 문제 ${number}-${childProblemLength}번`;
7172
const nextButtonLabel = '해설 보기';
7273

7374
const handleSubmitAnswer: SubmitHandler<{ answer: string }> = async ({ answer }) => {

0 commit comments

Comments
 (0)