Restrict order quantity edits to pending orders
Runner Test / test (push) Successful in 17s
Runner Test / test (pull_request) Successful in 17s

This commit is contained in:
Jeighdy Tanamal
2026-10-01 22:57:00 -07:00
parent 82ed809f32
commit 8297a2dd9d
3 changed files with 16 additions and 4 deletions
+4
View File
@@ -1,3 +1,7 @@
export const orderStatuses = ["pending", "processing", "shipped", "cancelled", "refunded"] as const;
export type OrderStatus = (typeof orderStatuses)[number];
export function canEditOrderItems(status: OrderStatus) {
return status === "pending";
}