Skip to content

Commit

Permalink
Merge pull request #35585 from rojiphil/35002-fix-lhn-missing-task-name
Browse files Browse the repository at this point in the history
fix for invalid task title in lhn
  • Loading branch information
madmax330 authored Feb 9, 2024
2 parents 4f9d415 + f167650 commit a1ad9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/TaskUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function getTaskTitle(taskReportID: string, fallbackTitle = ''): string {
function getTaskCreatedMessage(reportAction: OnyxEntry<ReportAction>) {
const taskReportID = reportAction?.childReportID ?? '';
const taskTitle = getTaskTitle(taskReportID, reportAction?.childReportName);
return Localize.translateLocal('task.messages.created', {title: taskTitle});
return taskTitle ? Localize.translateLocal('task.messages.created', {title: taskTitle}) : '';
}

export {getTaskReportActionMessage, getTaskTitle, getTaskCreatedMessage};

0 comments on commit a1ad9c0

Please sign in to comment.