Skip to content

Commit

Permalink
feat(starters-todolist): Add validation to text (#3450)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriiels authored Mar 21, 2023
1 parent ddb241c commit 27fe6bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starters/apps/basic/src/routes/demo/todolist/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const useAddToListAction = routeAction$(
};
},
zod$({
text: z.string(),
text: z.string().trim().min(1),
})
);

Expand Down

0 comments on commit 27fe6bf

Please sign in to comment.