Skip to content

Commit

Permalink
Merge pull request #38272 from nkdengineer/fix/37999
Browse files Browse the repository at this point in the history
  • Loading branch information
blimpich authored Mar 25, 2024
2 parents 4902835 + 6f21d01 commit b80f070
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/HeaderView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function HeaderView({report, personalDetails, parentReport, parentReportAction,
threeDotMenuItems.push({
icon: Expensicons.Trashcan,
text: translate('common.delete'),
onSelected: () => setIsDeleteTaskConfirmModalVisible(true),
onSelected: Session.checkIfActionIsAllowed(() => setIsDeleteTaskConfirmModalVisible(true)),
});
}
}
Expand Down Expand Up @@ -349,7 +349,7 @@ function HeaderView({report, personalDetails, parentReport, parentReportAction,
isVisible={isDeleteTaskConfirmModalVisible}
onConfirm={() => {
setIsDeleteTaskConfirmModalVisible(false);
Session.checkIfActionIsAllowed(Task.deleteTask(report));
Task.deleteTask(report);
}}
onCancel={() => setIsDeleteTaskConfirmModalVisible(false)}
title={translate('task.deleteTask')}
Expand Down

0 comments on commit b80f070

Please sign in to comment.