Fix save progress bug

This commit is contained in:
adilallo committed 2026-05-20 19:58:32 -06:00
1 parent 2f2b5d0dc2
commit 7ee6282c1a
14 files changed
+193 -88

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import type { CreateFlowState, CreateFlowStep } from "../../app/(app)/create/types";
/** Snapshot for save-progress / draft transfer (includes optional resume step). */
export function buildCreateFlowDraftPayload(
state: CreateFlowState,
currentStep?: CreateFlowStep | null,
): CreateFlowState {
return {
...state,
...(currentStep ? { currentStep } : {}),
};
}