Full cleanup pass

This commit is contained in:
adilallo committed 2026-05-21 23:25:56 -06:00
1 parent 28de8ef3bc
commit 99f535f821
149 files changed
+2623 -1242

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@ import type { CreateFlowState } from "./types";
import messages from "../../../messages/en/index";
import Alert from "../../components/modals/Alert";
const SYNC_ENABLED = process.env.NEXT_PUBLIC_ENABLE_BACKEND_SYNC === "true";
import { isBackendSyncEnabled } from "../../../lib/create/backendSyncEnabled";
function buildPayloadWithStep(
base: CreateFlowState,
@@ -111,7 +111,7 @@ export function PostLoginDraftTransfer({
return;
}
if (SYNC_ENABLED && createFlowStateHasKeys(local)) {
if (isBackendSyncEnabled() && createFlowStateHasKeys(local)) {
const saveResult = await saveDraftToServer(payload);
if (cancelled) return;