diff --git a/src/common/AddProjectMembers.jsx b/src/common/AddProjectMembers.jsx index 53650d5b..5b90e194 100644 --- a/src/common/AddProjectMembers.jsx +++ b/src/common/AddProjectMembers.jsx @@ -30,6 +30,8 @@ const AddProjectMembers = ({ handleSelectField, managerNames, }) => { + const acceptedManagers = managerNames.filter((manager) => manager.has_accepted_invite==true); + const filterOptions = (options, state) => { const newOptions = options.filter((user) => { const { first_name, last_name, email } = user; @@ -72,7 +74,7 @@ const AddProjectMembers = ({ { handleSelectField(newValue); diff --git a/src/containers/Organization/Video/components/SettingsButtonComponent.jsx b/src/containers/Organization/Video/components/SettingsButtonComponent.jsx index e0caea09..586d5e9d 100644 --- a/src/containers/Organization/Video/components/SettingsButtonComponent.jsx +++ b/src/containers/Organization/Video/components/SettingsButtonComponent.jsx @@ -106,6 +106,7 @@ const SettingsButtonComponent = ({ }, [apiStatus]); const getDisbled = (flag) => { + if (!transcriptPayload?.payload?.payload?.length) { return true; } @@ -115,10 +116,12 @@ const SettingsButtonComponent = ({ transcriptPayload?.source_type !== "MACHINE_GENERATED" ) { if (durationError?.some((item) => item === true)) { + return true; } if (flag && completedCount !== totalSentences) { + return true; } } @@ -128,6 +131,7 @@ const SettingsButtonComponent = ({ transcriptPayload?.source_type === "MACHINE_GENERATED" ) { if (!transcriptPayload?.payload?.payload.length) { + return true; } }