diff --git a/src/pages/home/report/ReportActionItem.js b/src/pages/home/report/ReportActionItem.js index 62a90b0bcd62..fa5644210bb6 100644 --- a/src/pages/home/report/ReportActionItem.js +++ b/src/pages/home/report/ReportActionItem.js @@ -103,8 +103,8 @@ const propTypes = { emojiReactions: EmojiReactionsPropTypes, personalDetailsList: PropTypes.objectOf(personalDetailsPropType), - /** Is this the only report action on the report? */ - isOnlyReportAction: PropTypes.bool, + /** Flag to show, hide the thread divider line */ + shouldHideThreadDividerLine: PropTypes.bool, }; const defaultProps = { @@ -114,7 +114,7 @@ const defaultProps = { personalDetailsList: {}, shouldShowSubscriptAvatar: false, hasOutstandingIOU: false, - isOnlyReportAction: false, + shouldHideThreadDividerLine: false, }; function ReportActionItem(props) { @@ -452,7 +452,7 @@ function ReportActionItem(props) { return ( ); } @@ -460,7 +460,7 @@ function ReportActionItem(props) { return ( ); } @@ -468,7 +468,7 @@ function ReportActionItem(props) { return ( ); } @@ -619,6 +619,6 @@ export default compose( ReportUtils.isCompletedTaskReport(prevProps.report) === ReportUtils.isCompletedTaskReport(nextProps.report) && prevProps.report.managerID === nextProps.report.managerID && prevProps.report.managerEmail === nextProps.report.managerEmail && - prevProps.isOnlyReportAction === nextProps.isOnlyReportAction, + prevProps.shouldHideThreadDividerLine === nextProps.shouldHideThreadDividerLine, ), ); diff --git a/src/pages/home/report/ReportActionsList.js b/src/pages/home/report/ReportActionsList.js index e8d861fc2ef6..20a0952d56ea 100644 --- a/src/pages/home/report/ReportActionsList.js +++ b/src/pages/home/report/ReportActionsList.js @@ -130,17 +130,17 @@ function ReportActionsList(props) { reportAction.actionName === CONST.REPORT.ACTIONS.TYPE.CREATED && ReportUtils.isChatThread(report) && !ReportActionsUtils.isTransactionThread(ReportActionsUtils.getParentReportAction(report)); - const shouldHideThreadDividerLine = - shouldDisplayParentAction && sortedReportActions.length > 1 && sortedReportActions[sortedReportActions.length - 2].reportActionID === newMarkerReportActionID; + const shouldHideThreadDividerLine = sortedReportActions.length > 1 && sortedReportActions[sortedReportActions.length - 2].reportActionID === newMarkerReportActionID; return shouldDisplayParentAction ? ( ) : ( ); },