Skip to content

Commit

Permalink
fix for invalid tast title in lhn
Browse files Browse the repository at this point in the history
  • Loading branch information
rojiphil committed Feb 1, 2024
1 parent b64b408 commit 4e57c17
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 4e57c17

Please sign in to comment.