Skip to content

Commit 23d7256

Browse files
committed
fix: allow null comments
1 parent 037225a commit 23d7256

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/proposal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ type Proposal = z.infer<typeof Proposal>
2323
const ProposalState = ProposalResponse.extend({
2424
userVote: z.object({
2525
value: z.number().min(-2).max(2).nullable(),
26-
comment: z.string(),
26+
comment: z.string().optional().nullable(),
2727
}).optional().nullable(),
2828
results: z.array(
2929
z.object({
3030
value: z.number().min(-2).max(2).nullable(),
31-
comment: z.string(),
31+
comment: z.string().optional().nullable(),
3232
})
3333
).optional().nullable(),
3434
})

0 commit comments

Comments
 (0)