Skip to content

Commit

Permalink
fix: allow null comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zenlex committed Jun 26, 2024
1 parent 037225a commit 23d7256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ type Proposal = z.infer<typeof Proposal>
const ProposalState = ProposalResponse.extend({
userVote: z.object({
value: z.number().min(-2).max(2).nullable(),
comment: z.string(),
comment: z.string().optional().nullable(),
}).optional().nullable(),
results: z.array(
z.object({
value: z.number().min(-2).max(2).nullable(),
comment: z.string(),
comment: z.string().optional().nullable(),
})
).optional().nullable(),
})
Expand Down

0 comments on commit 23d7256

Please sign in to comment.