Skip to content

Commit c084500

Browse files
committed
:chore: Remove null from superValidate (#2446)
1 parent fd0bb9a commit c084500

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/utils/authorship.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,15 @@ export const createAuthFormWithFallback = async () => {
5353
* Each strategy attempts a different approach to create a valid form
5454
*
5555
* See:
56+
* https://superforms.rocks/migration-v2#supervalidate
5657
* https://superforms.rocks/concepts/client-validation
5758
* https://superforms.rocks/api#supervalidate-options
5859
*/
5960
const formCreationStrategies = [
6061
{
6162
name: '(Basic case) Use standard superValidate',
6263
async run() {
63-
const form = await superValidate(null, zod(authSchema));
64+
const form = await superValidate(zod(authSchema));
6465
return { form: { ...form, message: '' } };
6566
},
6667
},

0 commit comments

Comments
 (0)