From 4834ec1d15556eaf6fc6594641d011d1d44e3bd5 Mon Sep 17 00:00:00 2001 From: sagarika-padmanaban Date: Sun, 11 Aug 2024 18:19:55 +0530 Subject: [PATCH] fixes --- .../Video/components/SettingsButtonComponent.jsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/containers/Organization/Video/components/SettingsButtonComponent.jsx b/src/containers/Organization/Video/components/SettingsButtonComponent.jsx index 6e9b334c..586d5e9d 100644 --- a/src/containers/Organization/Video/components/SettingsButtonComponent.jsx +++ b/src/containers/Organization/Video/components/SettingsButtonComponent.jsx @@ -106,14 +106,7 @@ const SettingsButtonComponent = ({ }, [apiStatus]); const getDisbled = (flag) => { - - - if ( - taskData?.source_type === "Manually Created" -) { - return false; - } - + if (!transcriptPayload?.payload?.payload?.length) { return true; } @@ -123,13 +116,11 @@ const SettingsButtonComponent = ({ transcriptPayload?.source_type !== "MACHINE_GENERATED" ) { if (durationError?.some((item) => item === true)) { - console.log("2"); return true; } if (flag && completedCount !== totalSentences) { - console.log("3"); return true; } @@ -140,7 +131,6 @@ const SettingsButtonComponent = ({ transcriptPayload?.source_type === "MACHINE_GENERATED" ) { if (!transcriptPayload?.payload?.payload.length) { - console.log("4"); return true; }