From d7f7f9aefe25cd4e5cbb3f2f5786b09d82faba2c Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Fri, 27 Sep 2024 00:28:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20show=20=E5=86=8D=E6=8C=91=E6=88=A6?= =?UTF-8?q?=E4=B8=AD=20instead=20of=20=E6=8C=91=E6=88=A6=E4=B8=AD=20if=20c?= =?UTF-8?q?ompleted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lectures/[lectureId]/pageOnClient.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/app/(withAuth)/courses/[courseId]/lectures/[lectureId]/pageOnClient.tsx b/src/app/(withAuth)/courses/[courseId]/lectures/[lectureId]/pageOnClient.tsx index ac4e7242..5ad3e3c4 100644 --- a/src/app/(withAuth)/courses/[courseId]/lectures/[lectureId]/pageOnClient.tsx +++ b/src/app/(withAuth)/courses/[courseId]/lectures/[lectureId]/pageOnClient.tsx @@ -123,11 +123,16 @@ export const Lecture: React.FC = (props) => { {problemIdToName[problemId]} - {suspendedSession && ( - - 挑戦中 - - )} + {suspendedSession && + (isProblemCompleted ? ( + + 再挑戦中 + + ) : ( + + 挑戦中 + + ))}