diff --git a/src/CONST.js b/src/CONST.js index 8d81e5d7b9c4..9a45cd631a90 100755 --- a/src/CONST.js +++ b/src/CONST.js @@ -491,7 +491,7 @@ const CONST = { CLOSED: 'CLOSED', CREATED: 'CREATED', TASKEDITED: 'TASKEDITED', - TASKCANCELED: 'TASKCANCELED', + TASKCANCELLED: 'TASKCANCELLED', IOU: 'IOU', RENAMED: 'RENAMED', CHRONOSOOOLIST: 'CHRONOSOOOLIST', diff --git a/src/components/ReportActionItem/TaskAction.js b/src/components/ReportActionItem/TaskAction.js index 5dd94dd7cc62..09277363ab2e 100644 --- a/src/components/ReportActionItem/TaskAction.js +++ b/src/components/ReportActionItem/TaskAction.js @@ -43,7 +43,7 @@ function TaskAction(props) { case CONST.REPORT.ACTIONS.TYPE.TASKCOMPLETED: messageLinkText = props.translate('task.messages.completed'); break; - case CONST.REPORT.ACTIONS.TYPE.TASKCANCELED: + case CONST.REPORT.ACTIONS.TYPE.TASKCANCELLED: messageLinkText = props.translate('task.messages.canceled'); break; case CONST.REPORT.ACTIONS.TYPE.TASKREOPENED: diff --git a/src/libs/actions/Task.js b/src/libs/actions/Task.js index 7bb96b483385..29bdf9ab9d44 100644 --- a/src/libs/actions/Task.js +++ b/src/libs/actions/Task.js @@ -585,7 +585,7 @@ function getShareDestination(reportID, reports, personalDetails) { */ function cancelTask(taskReportID, taskTitle, originalStateNum, originalStatusNum) { const message = `canceled task: ${taskTitle}`; - const optimisticCancelReportAction = ReportUtils.buildOptimisticTaskReportAction(taskReportID, CONST.REPORT.ACTIONS.TYPE.TASKCANCELED, message); + const optimisticCancelReportAction = ReportUtils.buildOptimisticTaskReportAction(taskReportID, CONST.REPORT.ACTIONS.TYPE.TASKCANCELLED, message); const optimisticReportActionID = optimisticCancelReportAction.reportActionID; const optimisticData = [ diff --git a/src/pages/home/report/ContextMenu/ContextMenuActions.js b/src/pages/home/report/ContextMenu/ContextMenuActions.js index 93d83fe87f1a..cf8cfb6496bf 100644 --- a/src/pages/home/report/ContextMenu/ContextMenuActions.js +++ b/src/pages/home/report/ContextMenu/ContextMenuActions.js @@ -167,7 +167,7 @@ export default [ shouldShow: (type, reportAction) => type === CONTEXT_MENU_TYPES.REPORT_ACTION && reportAction.actionName !== CONST.REPORT.ACTIONS.TYPE.IOU && - reportAction.actionName !== CONST.REPORT.ACTIONS.TYPE.TASKCANCELED && + reportAction.actionName !== CONST.REPORT.ACTIONS.TYPE.TASKCANCELLED && reportAction.actionName !== CONST.REPORT.ACTIONS.TYPE.TASKCOMPLETED && reportAction.actionName !== CONST.REPORT.ACTIONS.TYPE.TASKREOPENED && !ReportActionUtils.isCreatedTaskReportAction(reportAction) && diff --git a/src/pages/home/report/ReportActionItem.js b/src/pages/home/report/ReportActionItem.js index 710df7e30f9c..3b836711a948 100644 --- a/src/pages/home/report/ReportActionItem.js +++ b/src/pages/home/report/ReportActionItem.js @@ -256,7 +256,7 @@ function ReportActionItem(props) { ); } else if ( props.action.actionName === CONST.REPORT.ACTIONS.TYPE.TASKCOMPLETED || - props.action.actionName === CONST.REPORT.ACTIONS.TYPE.TASKCANCELED || + props.action.actionName === CONST.REPORT.ACTIONS.TYPE.TASKCANCELLED || props.action.actionName === CONST.REPORT.ACTIONS.TYPE.TASKREOPENED ) { children = (