From 55c389c6737e75c669af1b3db13e092b8815d518 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Sat, 18 May 2024 12:00:53 +0800 Subject: [PATCH 1/2] use parsed description --- src/libs/actions/Report.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/Report.ts b/src/libs/actions/Report.ts index 91a0ce5da930..e2e92b19b9dc 100644 --- a/src/libs/actions/Report.ts +++ b/src/libs/actions/Report.ts @@ -3143,7 +3143,7 @@ function completeOnboarding( currentTask, taskCreatedAction, taskReportAction, - taskDescription, + taskDescription: currentTask.description, completedTaskReportAction, }; }); From dadc3b8092c7549db088d4cab6802516e4c4b11a Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Sat, 18 May 2024 12:10:42 +0800 Subject: [PATCH 2/2] fix type --- src/libs/actions/Report.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/Report.ts b/src/libs/actions/Report.ts index e2e92b19b9dc..b0918391f432 100644 --- a/src/libs/actions/Report.ts +++ b/src/libs/actions/Report.ts @@ -3158,7 +3158,7 @@ function completeOnboarding( createdTaskReportActionID: taskCreatedAction.reportActionID, completedTaskReportActionID: completedTaskReportAction?.reportActionID ?? undefined, title: currentTask.reportName ?? '', - description: taskDescription, + description: taskDescription ?? '', })); const tasksForOptimisticData = tasksData.reduce((acc, {currentTask, taskCreatedAction, taskReportAction, taskDescription, completedTaskReportAction}) => {