Skip to content

Commit

Permalink
Merge pull request #205 from DevKor-github/fix/expire
Browse files Browse the repository at this point in the history
feat: 안 푼 문제도 문제가 막히면 disabled 처리
  • Loading branch information
sjunee2 authored Sep 26, 2024
2 parents c775e98 + 7f879ce commit b6ee0ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/PredictionQuestion/OptionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ export function OptionButton({
}
}}
$position={position}
$isAnswered={isAnswered}
$isAnswered={isAnswered || hasRealAnswer}
$isMyAnswer={isMyAnswer}
>
{!isCorrect && (
<>
{option}
{isAnswered && (
{(isAnswered || hasRealAnswer) && (
<Percentage $isMyAnswer={isMyAnswer}>
<span>{percentage}</span>
<span>%</span>
Expand All @@ -63,7 +63,7 @@ export function OptionButton({
<Gradient
initial={'visible'}
variants={motionVariant}
animate={isAnswered ? 'hidden' : 'visible'}
animate={isAnswered || hasRealAnswer ? 'hidden' : 'visible'}
$type={'default'}
$position={position}
/>
Expand Down

0 comments on commit b6ee0ef

Please sign in to comment.