Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mythilytm committed Oct 4, 2024
1 parent 5ce515e commit 21e1586
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ const ContactInProgressBanners: React.FC<ContactBannersProps> = ({ savedContact,
};

const handleSaveAndEnd = async () => {
const status = await checkTaskAssignment(savedContact.taskId);
const isTaskAssigned = await checkTaskAssignment(savedContact.taskId);

if (status === true) {
if (isTaskAssigned === true) {
setIsDialogOpen(true);
} else {
await updateAndSaveContact();
Expand Down
2 changes: 0 additions & 2 deletions plugin-hrm-form/src/components/tabbedForms/BottomBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ const BottomBar: React.FC<
const handleSubmit = async () => {
if (contactIsSaving || !hasTaskControl(task)) return;

console.log('>>> Submitting contact form', { task, contact, metadata, caseState });

try {
await submitContactForm(task as CustomITask, contact, metadata, caseState);
await completeTask(task, contact);
Expand Down
3 changes: 0 additions & 3 deletions plugin-hrm-form/src/hrmConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ const readConfig = () => {
const featureFlagsFromEnv = Object.fromEntries(featureFlagsFromEnvEntries);
const featureFlagsFromServiceConfig: FeatureFlags = manager.serviceConfiguration.attributes.feature_flags || {};

// eslint-disable-next-line camelcase
featureFlagsFromServiceConfig.enable_generalized_search = false;

const featureFlags = {
...featureFlagsFromServiceConfig,
...featureFlagsFromEnv,
Expand Down
2 changes: 0 additions & 2 deletions plugin-hrm-form/src/permissions/canEditInProgressContact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import { Contact } from '../types/types';
import { getHrmConfig } from '../hrmConfig';

const getCanEditInProgressContact = (contact: Contact, workerRoles: string[]): (() => boolean) => {
// const worker = Manager.getInstance().workerClient
console.log('>>> getCanEditInProgressContact', { workerRoles });
if (!contact.finalizedAt) {
// If the contact is a draft, we use the hardcoded rule that only its owner or creator can edit it
const { workerSid } = getHrmConfig();
Expand Down

0 comments on commit 21e1586

Please sign in to comment.