File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -139,9 +139,7 @@ export const action = async ({ request }: ActionFunctionArgs) => {
139
139
. run ( ) ;
140
140
} ;
141
141
142
- const intentSchema = z . object ( { intent : z . string ( ) } ) ;
143
-
144
- const emailSchema = z . object ( { email : z . string ( ) . email ( ) } ) . merge ( intentSchema ) ;
142
+ const emailSchema = z . object ( { email : z . string ( ) . email ( ) } ) ;
145
143
146
144
const registerSchema = z
147
145
. object ( { otpCode : z . string ( ) . length ( 6 ) } )
@@ -302,7 +300,7 @@ export default function Page() {
302
300
< Form
303
301
method = "POST"
304
302
className = "flex gap-2 flex-none"
305
- action = { withQuery ( "." , {
303
+ action = { withQuery ( ".?index " , {
306
304
intent : loaderData . query . email
307
305
? "registerWithEmail"
308
306
: "sendLoginCode" ,
@@ -348,7 +346,7 @@ export default function Page() {
348
346
< p className = "text-xs" > OR</ p >
349
347
< Form
350
348
method = "POST"
351
- action = { withQuery ( "." , { intent : "registerWithOidc" } ) }
349
+ action = { withQuery ( ".?index " , { intent : "registerWithOidc" } ) }
352
350
>
353
351
< Button
354
352
variant = "outline"
@@ -440,7 +438,7 @@ export default function Page() {
440
438
) : (
441
439
< Form
442
440
method = "POST"
443
- action = { withQuery ( "." , { intent : "contactSubmission" } ) }
441
+ action = { withQuery ( ".?index " , { intent : "contactSubmission" } ) }
444
442
className = "flex flex-col items-center justify-center pt-12 gap-y-4 gap-x-4"
445
443
>
446
444
< HoneypotInputs />
Original file line number Diff line number Diff line change 49
49
"sonner" : " 1.5.0" ,
50
50
"tailwind-merge" : " 2.5.4" ,
51
51
"tailwindcss-animate" : " 1.0.7" ,
52
+ "tiny-invariant" : " 1.3.3" ,
52
53
"ts-pattern" : " 5.5.0" ,
53
54
"ufo" : " 1.5.4" ,
54
55
"zod" : " 3.23.8" ,
Original file line number Diff line number Diff line change @@ -6305,6 +6305,7 @@ __metadata:
6305
6305
tailwind-merge: "npm:2.5.4"
6306
6306
tailwindcss: "npm:3.4.14"
6307
6307
tailwindcss-animate: "npm:1.0.7"
6308
+ tiny-invariant: "npm:1.3.3"
6308
6309
ts-pattern: "npm:5.5.0"
6309
6310
typescript: "npm:5.6.3"
6310
6311
typescript-remix-routes-plugin: "npm:1.0.1"
You can’t perform that action at this time.
0 commit comments