Skip to content

Commit

Permalink
remove nullable from address line2 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmadeveloper108 committed Apr 23, 2024
1 parent d042978 commit b48e528
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/PortingEmbed/features/Address/AddressForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ const schema = z.object({
.string()
.trim()
.max(35, 'Line 2 must not exceed 35 characters')
.optional()
.nullable(),
.optional(),
city: z.string().trim().min(1, 'City is required'),
postalCode: z.string().trim().optional(),
state: z.string().nullable().optional(),
Expand Down

0 comments on commit b48e528

Please sign in to comment.