Skip to content

Commit

Permalink
fix: show 再挑戦中 instead of 挑戦中 if completed
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Sep 26, 2024
1 parent 628c150 commit d7f7f9a
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,16 @@ export const Lecture: React.FC<Props> = (props) => {
<Link as={NextLink} href={`${props.params.lectureId}/problems/${problemId}`}>
{problemIdToName[problemId]}
</Link>
{suspendedSession && (
<Tag colorScheme="brand" fontWeight="bold" size="sm" variant="solid">
挑戦中
</Tag>
)}
{suspendedSession &&
(isProblemCompleted ? (
<Tag colorScheme="brand" fontWeight="bold" size="sm" variant="outline">
再挑戦中
</Tag>
) : (
<Tag colorScheme="brand" fontWeight="bold" size="sm" variant="solid">
挑戦中
</Tag>
))}
</HStack>
</Td>
<Td isNumeric color="gray.600">
Expand Down

0 comments on commit d7f7f9a

Please sign in to comment.