diff --git a/front/src/modules/companies/components/HooksCompanyBoard.tsx b/front/src/modules/companies/components/HooksCompanyBoard.tsx index 8acb76005d..58ca791c63 100644 --- a/front/src/modules/companies/components/HooksCompanyBoard.tsx +++ b/front/src/modules/companies/components/HooksCompanyBoard.tsx @@ -162,10 +162,16 @@ export function HooksCompanyBoard({ ); const synchronizeCompanyProgresses = useRecoilCallback( - ({ set }) => + ({ snapshot, set }) => (companyBoardIndex: { [key: string]: CompanyProgress }) => { Object.entries(companyBoardIndex).forEach(([id, companyProgress]) => { - set(companyProgressesFamilyState(id), companyProgress); + if ( + JSON.stringify( + snapshot.getLoadable(companyProgressesFamilyState(id)).getValue(), + ) !== JSON.stringify(companyProgress) + ) { + set(companyProgressesFamilyState(id), companyProgress); + } }); }, [],