Skip to content

Commit

Permalink
Remove Mark as Complete from threeDotMenuItems
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaHCD committed Oct 2, 2023
1 parent e33bc0a commit fddc150
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/pages/home/HeaderView.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,6 @@ function HeaderView(props) {
const threeDotMenuItems = [];
if (isTaskReport && !isCanceledTaskReport) {
const canModifyTask = Task.canModifyTask(props.report, props.session.accountID);
if (ReportUtils.isOpenTaskReport(props.report) && canModifyTask) {
threeDotMenuItems.push({
icon: Expensicons.Checkmark,
iconFill: themeColors.icon,
text: props.translate('task.markAsComplete'),
onSelected: () => Task.completeTask(props.report),
});
}

// Task is marked as completed
if (ReportUtils.isCompletedTaskReport(props.report) && canModifyTask) {
Expand Down

0 comments on commit fddc150

Please sign in to comment.