From 0204d4848533e46ed5e0d83851fe68a8927e2c5e Mon Sep 17 00:00:00 2001 From: Eddasol Date: Tue, 10 Dec 2024 14:20:43 +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 }) => {