Skip to content

Commit

Permalink
cleaning_wip
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHub committed Dec 31, 2024
1 parent 57a0b83 commit e930a93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/consultant/EditConsultant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const EditConsultant = () => {
.filter(x => x.email === consultant.email)
.find(x => x.slug !== params.id && x._id !== params.id));

useEntityChangedToast(model?._id);
useEntityChangedToast(consultant._id);

const docTitle = consultant._id ? 'consultantEdit' : 'consultantNew';
useDocumentTitle(docTitle, {name: `${consultant.firstName} ${consultant.name}`});
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/project/EditProject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const EditProject = () => {
const hasProjectMonths = useSelector((state: ConfacState) => state.projectsMonth.some(pm => pm.projectId === params.id));
const [needsSync, setNeedsSync] = useState<{consultant: boolean, client: boolean}>({consultant: false, client: false});

useEntityChangedToast(model?._id);
useEntityChangedToast(project._id);

const docTitle = consultant._id ? 'projectEdit' : 'projectNew';
useDocumentTitle(docTitle, {consultant: consultant.firstName, client: client.name});
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/project/EditProjectMonths.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const EditProjectMonths = () => {
const model = useProjectsMonth(params.projectMonthId);
const [projectMonth, setProjectMonth] = useState<ProjectMonthModel>((model && model.details) || getNewProjectMonth());

useEntityChangedToast(model?._id);
useEntityChangedToast(projectMonth._id);

const docTitle = projectMonth._id ? 'projectMonthEdit' : 'projectMonthNew';
const consultantName = (model && model.consultantName) || '';
Expand Down

0 comments on commit e930a93

Please sign in to comment.