Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarika-padmanaban committed Aug 11, 2024
1 parent 880fab5 commit 4834ec1
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -140,7 +131,6 @@ const SettingsButtonComponent = ({
transcriptPayload?.source_type === "MACHINE_GENERATED"
) {
if (!transcriptPayload?.payload?.payload.length) {
console.log("4");

return true;
}
Expand Down

0 comments on commit 4834ec1

Please sign in to comment.