Skip to content

Commit

Permalink
Merge pull request #28582 from Expensify/maria-remove-markAsComplete-…
Browse files Browse the repository at this point in the history
…menu-item

Remove `Mark as complete` menu item from threeDotMenuItems for tasks
  • Loading branch information
MariaHCD authored Oct 2, 2023
2 parents 2faa3b5 + fddc150 commit cc81baf
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 cc81baf

Please sign in to comment.