File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
api/escrow/multisig/[id]/propose Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { NextRequest, NextResponse } from 'next/server';
99import { createClient } from '@supabase/supabase-js' ;
1010import {
1111 proposeTransaction ,
12- proposeTransactionSchema ,
12+ prepareTransactionSchema ,
1313} from '@/lib/multisig' ;
1414
1515function getSupabase ( ) {
@@ -29,7 +29,7 @@ export async function POST(
2929 const body = await request . json ( ) ;
3030
3131 // Validate input
32- const parsed = proposeTransactionSchema . safeParse ( body ) ;
32+ const parsed = prepareTransactionSchema . safeParse ( body ) ;
3333 if ( ! parsed . success ) {
3434 return NextResponse . json (
3535 { error : parsed . error . errors [ 0 ] . message } ,
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import { startAuthentication } from '@simplewebauthn/browser';
77
88export default function LoginForm ( ) {
99 const router = useRouter ( ) ;
10+ const searchParams = useSearchParams ( ) ;
11+ const redirectTo = searchParams . get ( 'redirect' ) || searchParams . get ( 'redirectTo' ) ;
1012 const [ formData , setFormData ] = useState ( {
1113 email : '' ,
1214 password : '' ,
You can’t perform that action at this time.
0 commit comments