Skip to content

Commit

Permalink
fix username in task history widget for revisions (#2270)
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak authored Feb 14, 2024
1 parent 97d6a4a commit fdce933
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/TaskHistoryList/TaskHistoryList.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ export class TaskHistoryList extends Component {
}
lastTimestamp = new Date(log.timestamp)


switch(log.actionType) {
case TaskHistoryAction.comment:
logEntry = commentEntry(log, this.props, index)
Expand All @@ -96,7 +95,7 @@ export class TaskHistoryList extends Component {
case TaskHistoryAction.review:
case TaskHistoryAction.metaReview:
if (log.reviewStatus === TaskReviewStatus.needed) {
username = _get(log, 'metaReviewRequestedBy.username')
username = TaskHistoryAction.review === log.actionType ? _get(log, 'reviewRequestedBy.username') : _get(log, 'metaReviewRequestedBy.username')
logEntry = reviewEntry(log, this.props, index)
} else {
logEntry = null
Expand Down

0 comments on commit fdce933

Please sign in to comment.