Index: app/lib/actions.ts
===================================================================
--- app/lib/actions.ts	(revision f7c2db043166225be9c941872bfbead03624a6e4)
+++ app/lib/actions.ts	(revision 4d763f8c36da0faaf91c536d957405956a802639)
@@ -31,13 +31,11 @@
 const FormSchema = z.object({
     id: z.string(),
-    customerId: z.string({
-        invalid_type_error: 'Please select a customer.',
-    }),
+    customerId: z.string().min(1, 'Please select a customer.'),
     amount: z.coerce
         .number()
         .gt(0, { message: 'Please enter an amount greater than $0.' }),
-    status: z.enum(['pending', 'paid'], {
-        invalid_type_error: 'Please select an invoice status.',
-    }),
+    status: z
+        .enum(['pending', 'paid'])
+        .refine(Boolean, { message: 'Please select an invoice status.' }),
     date: z.string(),
 });
