fix: harden production flows and user messaging

This commit is contained in:
Leon Tonhäuser committed 2026-08-11 16:07:13 +02:00
1 parent 52dce168dd
commit 86dfe8053d
43 files changed
+3520 -358

No files matched your search

@@ -98,6 +98,9 @@ export async function updateFlatrateAction(editorialId: string, formData: FormDa
flatratePriceCents = price.cents;
}
}
if (flatrateActive && flatratePriceCents === null) {
throw new Error("INVALID_FLATRATE_PRICE");
}
let flatrateAssetLimit: number | null = null;
const rawLimit = formData.get("flatrateAssetLimit");