just chaging enum values to work with the backend

This commit is contained in:
José Salazar
2025-12-18 09:50:54 -05:00
parent cb29f73685
commit 01180bc757
20 changed files with 57 additions and 59 deletions

View File

@@ -312,17 +312,17 @@ export default function EventForm({ event, onSubmit, isSubmitting, currentUser }
e.preventDefault();
let status;
if (isDraft) {
status = "Draft";
status = "DRAFT";
} else {
switch (formData.order_type) {
case "rapid":
status = "Active"; // Rapid requests are active immediately upon submission
status = "ACTIVE"; // Rapid requests are active immediately upon submission
break;
case "one_time":
case "recurring":
case "permanent":
default: // In case of an unexpected order_type, default to Pending
status = "Pending"; // These types typically need approval/processing
status = "PENDING"; // These types typically need approval/processing
break;
}
}