Skip to content

Commit

Permalink
fix: Only the active issue list shows update time
Browse files Browse the repository at this point in the history
  • Loading branch information
shuashuai committed Oct 18, 2024
1 parent 81fbea1 commit 13c17f1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ui/src/components/QuestionList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,15 @@ const QuestionList: FC<Props> = ({
/>
<FormatTime
time={li.operated_at}
time={
curOrder === 'active' ? li.operated_at : li.created_at
}
className="text-secondary ms-1 flex-shrink-0"
preFix={t(li.operation_type)}
preFix={
curOrder === 'active'
? t(li.operation_type)
: t('asked')
}
/>
</div>
<Counts
Expand Down

0 comments on commit 13c17f1

Please sign in to comment.