diff --git a/src/components/orchestrator/UseLunatic.tsx b/src/components/orchestrator/UseLunatic.tsx index 687e7981..dc5bebc1 100644 --- a/src/components/orchestrator/UseLunatic.tsx +++ b/src/components/orchestrator/UseLunatic.tsx @@ -132,13 +132,11 @@ export function UseLunatic(props: PropsWithChildren) { previousPageTag !== pageTag; const handleGoNext = useCallback(() => { - if (isLastPage) { - saveChange({ pageTag, getData }); - } else { + if (!isLastPage) { shouldSync.current = true; goNextPage?.(); } - }, [goNextPage, isLastPage, saveChange, pageTag, getData]); + }, [goNextPage, isLastPage]); const handleGoBack = useCallback(() => { shouldSync.current = true;