From 7b213351cca9ce29af66114944a279bee4383879 Mon Sep 17 00:00:00 2001 From: CollinBeczak Date: Wed, 14 Feb 2024 15:12:03 -0600 Subject: [PATCH] fix username in task history widget for revisions --- src/components/TaskHistoryList/TaskHistoryList.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/TaskHistoryList/TaskHistoryList.js b/src/components/TaskHistoryList/TaskHistoryList.js index 555057b65..5f11952e6 100644 --- a/src/components/TaskHistoryList/TaskHistoryList.js +++ b/src/components/TaskHistoryList/TaskHistoryList.js @@ -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) @@ -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