just chaging enum values to work with the backend
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user