fix: harden production flows and user messaging
This commit is contained in:
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");
|
||||
|
||||
Reference in new issue
Block a user