Skip to content

Commit

Permalink
fix(launchpad): Make input optional
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDadidou committed Feb 19, 2025
1 parent e581e04 commit 54607fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/hooks/launchpad/useCreateCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const useCreateCollection = () => {
symbol: collectionFormValues.symbol,
website_link: collectionFormValues.websiteLink,
contact_email: collectionFormValues.email,
project_type: collectionFormValues.projectTypes.join(),
project_type: collectionFormValues.projectTypes?.join(),
tokens_count: assetsMetadataFormsValues?.assetsMetadatas?.length || 0,
reveal_time: collectionFormValues.revealTime,
team_desc: collectionFormValues.teamDescription,
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/types/launchpad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const ZodCollectionFormValues = z.object({
.trim()
.refine((value) => EMAIL_REGEXP.test(value), DEFAULT_FORM_ERRORS.onlyEmail)
.optional(),
projectTypes: z.array(z.string().trim()),
projectTypes: z.array(z.string().trim()).optional(),
revealTime: z.number().optional(),
teamDescription: z.string().trim().optional(),
partnersDescription: z.string().trim().optional(),
Expand Down

0 comments on commit 54607fc

Please sign in to comment.