From 065d75b10ef6be924c588d76e82d62da0ccd0bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Pel=C3=A9?= Date: Tue, 7 Jan 2025 14:37:49 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Suppression=20put=20state-data=20apr=C3=A8s?= =?UTF-8?q?=20validation=20qui=20s'affiche=20en=20erreur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/orchestrator/UseLunatic.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/orchestrator/UseLunatic.tsx b/src/components/orchestrator/UseLunatic.tsx index 687e7981..aca7745f 100644 --- a/src/components/orchestrator/UseLunatic.tsx +++ b/src/components/orchestrator/UseLunatic.tsx @@ -132,9 +132,7 @@ export function UseLunatic(props: PropsWithChildren) { previousPageTag !== pageTag; const handleGoNext = useCallback(() => { - if (isLastPage) { - saveChange({ pageTag, getData }); - } else { + if (!isLastPage) { shouldSync.current = true; goNextPage?.(); } From 3d96e47503eb3655bd2d5e0f7c1c317fff7c87eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Pel=C3=A9?= Date: Tue, 7 Jan 2025 14:52:39 +0100 Subject: [PATCH 2/2] Fix build suite aux modifs --- src/components/orchestrator/UseLunatic.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/orchestrator/UseLunatic.tsx b/src/components/orchestrator/UseLunatic.tsx index aca7745f..dc5bebc1 100644 --- a/src/components/orchestrator/UseLunatic.tsx +++ b/src/components/orchestrator/UseLunatic.tsx @@ -136,7 +136,7 @@ export function UseLunatic(props: PropsWithChildren) { shouldSync.current = true; goNextPage?.(); } - }, [goNextPage, isLastPage, saveChange, pageTag, getData]); + }, [goNextPage, isLastPage]); const handleGoBack = useCallback(() => { shouldSync.current = true;