Skip to content

Commit

Permalink
cleaned shipping form
Browse files Browse the repository at this point in the history
  • Loading branch information
erikrakuscek committed Mar 19, 2024
1 parent 7472a37 commit b199d52
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/commerce/components/checkout-panel/shipping-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import { useCommerce } from '../..'
import { countries } from './countries'

const shippingFormSchema = z.object({
firstName: z.string().min(2, 'First name must be at least 2 characters.'),
lastName: z.string().min(2, 'Last name must be at least 2 characters.'),
addressLine1: z.string().min(2, 'Address must be at least 2 characters.'),
addressLine2: z.string().optional(),
zipCode: z.string().min(2, 'Zip code is invalid.'),
Expand All @@ -51,8 +49,6 @@ const ShippingInfo: React.FC<{
const shippingForm = useForm<z.infer<typeof shippingFormSchema>>({
resolver: zodResolver(shippingFormSchema),
defaultValues: {
firstName: '',
lastName: '',
addressLine1: '',
addressLine2: '',
zipCode: '',
Expand Down

0 comments on commit b199d52

Please sign in to comment.