We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e0d4ebf + e211e89 commit 709802cCopy full SHA for 709802c
apps/service/src/app/problem/solve/[publishId]/[problemId]/main-problem/page.tsx
@@ -65,9 +65,10 @@ const Page = () => {
65
childProblemStatuses.length > 0 &&
66
childProblemStatuses[childProblemStatuses.length - 1] === 'NOT_STARTED';
67
68
- const prevButtonLabel = isDirect
69
- ? `메인 문제 ${number}번`
70
- : `새끼 문제 ${number}-${childProblemLength}번`;
+ const prevButtonLabel =
+ isDirect || childProblemLength === 0
+ ? `메인 문제 ${number}번`
71
+ : `새끼 문제 ${number}-${childProblemLength}번`;
72
const nextButtonLabel = '해설 보기';
73
74
const handleSubmitAnswer: SubmitHandler<{ answer: string }> = async ({ answer }) => {
0 commit comments