add functionnal recap ready for tests

This commit is contained in:
Julien Aldon
2026-03-05 17:17:23 +01:00
parent 3cfa60507e
commit ff19448991
5 changed files with 359 additions and 169 deletions

View File

@@ -27,6 +27,8 @@ export default function Contracts() {
const { data: allContracts } = useGetContracts();
const forms = useMemo(() => {
if (!allContracts)
return [];
return allContracts
?.map((contract: Contract) => contract.form.name)
.filter((contract, index, array) => array.indexOf(contract) === index);