From ccfbeac2ba9bae9080269e27d7b0d6a84135095c Mon Sep 17 00:00:00 2001 From: Eddasol Date: Tue, 10 Dec 2024 12:20:22 +0100 Subject: [PATCH] Capitalize first letter of task description --- .../components/Pages/MissionPage/TaskOverview/TaskTable.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Pages/MissionPage/TaskOverview/TaskTable.tsx b/frontend/src/components/Pages/MissionPage/TaskOverview/TaskTable.tsx index 6123c2412..50f223b41 100644 --- a/frontend/src/components/Pages/MissionPage/TaskOverview/TaskTable.tsx +++ b/frontend/src/components/Pages/MissionPage/TaskOverview/TaskTable.tsx @@ -96,8 +96,12 @@ const TagIdDisplay = ({ task }: { task: Task }) => { } const DescriptionDisplay = ({ task }: { task: Task }) => { + const capitalizeFirstLetter = (str: string) => { + return str.charAt(0).toUpperCase() + str.slice(1) + } + if (!task.description) return {'N/A'} - return {task.description} + return {capitalizeFirstLetter(task.description)} } const InspectionTypesDisplay = ({ task }: { task: Task }) => {