From 76d419c539c0d00b2e0c1cc0668cf5f711f620f5 Mon Sep 17 00:00:00 2001 From: Mykhailo Kravchenko Date: Fri, 19 Apr 2024 12:07:26 +0200 Subject: [PATCH] fix bold text --- src/libs/actions/Report.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/libs/actions/Report.ts b/src/libs/actions/Report.ts index 4ac7d28d1ac4..8b1d9b64e080 100644 --- a/src/libs/actions/Report.ts +++ b/src/libs/actions/Report.ts @@ -3056,14 +3056,14 @@ function completeOnboarding( }, ); const subtitleComment = task.subtitle ? ReportUtils.buildOptimisticAddCommentReportAction(task.subtitle, undefined, actorAccountID) : null; - const taskMessage = - typeof task.message === 'function' - ? task.message({ - adminsRoomLink: `${CONFIG.EXPENSIFY.NEW_EXPENSIFY_URL}${ROUTES.REPORT_WITH_ID.getRoute(adminsChatReportID ?? '')}`, - guideCalendarLink: guideCalendarLink ?? CONFIG.EXPENSIFY.NEW_EXPENSIFY_URL, - }) - : task.message; - const instructionComment = ReportUtils.buildOptimisticAddCommentReportAction(taskMessage, undefined, actorAccountID, 1); + const isTaskMessageFunction = typeof task.message === 'function'; + const taskMessage = isTaskMessageFunction + ? task.message({ + adminsRoomLink: `${CONFIG.EXPENSIFY.NEW_EXPENSIFY_URL}${ROUTES.REPORT_WITH_ID.getRoute(adminsChatReportID ?? '')}`, + guideCalendarLink: guideCalendarLink ?? CONFIG.EXPENSIFY.NEW_EXPENSIFY_URL, + }) + : task.message; + const instructionComment = ReportUtils.buildOptimisticAddCommentReportAction(taskMessage, undefined, actorAccountID, 1, isTaskMessageFunction ? undefined : false); return { currentTask,