Skip to content

Commit 3a37196

Browse files
authored
fix: make S2 onboarding phone optional (#2088)
1 parent 54b71ee commit 3a37196

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/app/src/app/(app)/onboarding/actions/complete-onboarding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const onboardingCompletionSchema = z.object({
4646
shipping: z.object({
4747
fullName: z.string(),
4848
address: z.string(),
49-
phone: z.string(),
49+
phone: z.string().optional(),
5050
}),
5151
});
5252

apps/app/src/app/(app)/setup/components/OnboardingStepInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export function OnboardingStepInput({
7777
)}
7878
</div>
7979
<div className="flex-1 space-y-1.5">
80-
<Label>Phone</Label>
80+
<Label>Phone (optional)</Label>
8181
<Input
8282
{...form.register('shipping.phone')}
8383
placeholder="+1 (555) 123-4567"

apps/app/src/app/(app)/setup/lib/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const companyDetailsSchema = z.object({
4444
shipping: z.object({
4545
fullName: z.string().min(1, 'Full name is required'),
4646
address: z.string().min(1, 'Address is required'),
47-
phone: z.string().min(1, 'Phone number is required'),
47+
phone: z.string().optional(),
4848
}),
4949
});
5050

apps/app/src/app/(app)/setup/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export type CompanyDetails = {
3434
shipping: {
3535
fullName: string;
3636
address: string;
37-
phone: string;
37+
phone?: string;
3838
};
3939
};
4040

0 commit comments

Comments
 (0)