From 0ac0204177a2335b650946fce0aa1f853b000d65 Mon Sep 17 00:00:00 2001 From: Jenin Joseph Date: Sun, 9 Jun 2024 18:34:42 +0530 Subject: [PATCH 1/3] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 62dc6f213..172810e0b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mulearnfrontend", "private": true, - "version": "0.0.4", + "version": "0.0.5", "type": "module", "scripts": { "dev": "vite --host", From addfa017046c1f7e84a06f56617170f69d9cc9fb Mon Sep 17 00:00:00 2001 From: Jenin Joseph Date: Sun, 9 Jun 2024 18:51:57 +0530 Subject: [PATCH 2/3] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 172810e0b..e489e6ff3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mulearnfrontend", "private": true, - "version": "0.0.5", + "version": "0.0.6", "type": "module", "scripts": { "dev": "vite --host", From 2d0483c39cec54a92b6ca94486e002c168aa5dd3 Mon Sep 17 00:00:00 2001 From: Aswanth Vc <69764494+aswanthabam@users.noreply.github.com> Date: Thu, 26 Dec 2024 11:49:42 +0530 Subject: [PATCH 3/3] Update TaskApis.ts --- src/modules/Dashboard/modules/Tasks/TaskApis.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/modules/Dashboard/modules/Tasks/TaskApis.ts b/src/modules/Dashboard/modules/Tasks/TaskApis.ts index 02d5339e6..87e9027b2 100644 --- a/src/modules/Dashboard/modules/Tasks/TaskApis.ts +++ b/src/modules/Dashboard/modules/Tasks/TaskApis.ts @@ -112,9 +112,15 @@ export const editTask = async ( bonus_karma?: string ) => { try { - const formattedBonusTime = (bonus_time && bonus_time != "") - ? new Date(bonus_time).toISOString() // Convert bonus_time to ISO format - : null; + let formattedBonusTime: string | null; + try { + formattedBonusTime = (bonus_time && bonus_time !== "") + ? new Date(bonus_time).toISOString() // Convert bonus_time to ISO format + : null; + } catch (error) { + console.error("Error converting bonus_time to ISO format:", error); + formattedBonusTime = null; // Fallback value in case of an error + } const response = await privateGateway.put( dashboardRoutes.getTasksData + id,